[Pkg-anonymity-tools] [onionshare] 118/140: remove trailing slash from filenames before adding, because getting basename on OSX fails otherwise
Ulrike Uhlig
u-guest at moszumanska.debian.org
Mon Sep 29 20:33:54 UTC 2014
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository onionshare.
commit 15671ce1d9591a6f6f84176a412ed8c3809b2335
Author: Micah Lee <micah at micahflee.com>
Date: Mon Sep 22 12:03:50 2014 -0700
remove trailing slash from filenames before adding, because getting basename on OSX fails otherwise
---
onionshare_gui/file_selection.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py
index d5c21dc..4a5bfeb 100644
--- a/onionshare_gui/file_selection.py
+++ b/onionshare_gui/file_selection.py
@@ -108,7 +108,7 @@ class FileList(QtGui.QListWidget):
self.filenames.append(filename)
fileinfo = QtCore.QFileInfo(filename)
- basename = os.path.basename(filename)
+ basename = os.path.basename(filename.rstrip('/'))
ip = QtGui.QFileIconProvider()
icon = ip.icon(fileinfo)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git
More information about the Pkg-anonymity-tools
mailing list