From f3289d2e59bff57c1908c306a78ac8fec7c7db4f Mon Sep 17 00:00:00 2001 From: Tomeu Date: Sun, 13 May 2007 16:21:35 +0000 Subject: Implement setting the journal entry title from the toolbar. --- (limited to 'shell') diff --git a/shell/view/frame/clipboardbox.py b/shell/view/frame/clipboardbox.py index 4a01610..85fadef 100644 --- a/shell/view/frame/clipboardbox.py +++ b/shell/view/frame/clipboardbox.py @@ -84,7 +84,7 @@ class ClipboardBox(hippo.CanvasBox): if len(uris) > 1: raise NotImplementedError('Multiple uris in text/uri-list still not supported.') uri = urlparse.urlparse(uris[0]) - path, file_name = os.path.split(uri.path) + path, file_name = os.path.split(uri[2]) # Copy the file, as it will be deleted when the dnd operation finishes. new_file_path = os.path.join(path, 'cb' + file_name) -- cgit v0.9.1