From b3bc4f5f446b8c62bd65ba9926d066f148a1dcd5 Mon Sep 17 00:00:00 2001 From: Etoh Date: Mon, 20 Jul 2015 22:11:30 +0100 Subject: [PATCH] Use decoded filename in tooltip --- syncplay/ui/gui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 59ad9b1..06618a7 100644 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -200,11 +200,10 @@ class MainWindow(QtGui.QMainWindow): filesizeitem = QtGui.QStandardItem(formatSize(user.file['size'])) filedurationitem = QtGui.QStandardItem("({})".format(formatTime(user.file['duration']))) filename = user.file['name'] - rawfilename = filename if isURL(filename): filename = urllib.unquote(filename) filenameitem = QtGui.QStandardItem(filename) - filenameitem.setToolTip(rawfilename) + filenameitem.setToolTip(filename) fileSwitchState = self.getFileSwitchState(user.file['name']) if room == currentUser.room else None filenameitem.setData(fileSwitchState, Qt.UserRole + constants.FILEITEM_SWITCH_ROLE) if currentUser.file: