remove trailing slash from filenames before adding, because getting basename on OSX fails otherwise

This commit is contained in:
Micah Lee 2014-09-22 12:03:50 -07:00
parent a75c561452
commit 15671ce1d9

View File

@ -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)