diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index d5c21dca..4a5bfeb8 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)