mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
remove trailing slash from filenames before adding, because getting basename on OSX fails otherwise
This commit is contained in:
parent
a75c561452
commit
15671ce1d9
@ -108,7 +108,7 @@ class FileList(QtGui.QListWidget):
|
|||||||
self.filenames.append(filename)
|
self.filenames.append(filename)
|
||||||
|
|
||||||
fileinfo = QtCore.QFileInfo(filename)
|
fileinfo = QtCore.QFileInfo(filename)
|
||||||
basename = os.path.basename(filename)
|
basename = os.path.basename(filename.rstrip('/'))
|
||||||
ip = QtGui.QFileIconProvider()
|
ip = QtGui.QFileIconProvider()
|
||||||
icon = ip.icon(fileinfo)
|
icon = ip.icon(fileinfo)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user