Don't omit "open folder" option in playlist for current file

This commit is contained in:
Et0h 2017-01-19 21:53:31 +00:00
parent 94e54a4f65
commit 976dc99afd
1 changed files with 6 additions and 6 deletions

View File

@ -510,13 +510,13 @@ class MainWindow(QtGui.QMainWindow):
if item:
firstFile = item.sibling(item.row(), 0).data()
pathFound = self._syncplayClient.fileSwitch.findFilepath(firstFile) if not isURL(firstFile) else None
if self._syncplayClient.userlist.currentUser.file is None or firstFile <> self._syncplayClient.userlist.currentUser.file["name"]:
if isURL(firstFile):
menu.addAction(QtGui.QPixmap(resourcespath + u"world_go.png"), getMessage("openstreamurl-menu-label"), lambda: self.openFile(firstFile))
else:
pathFound = self._syncplayClient.fileSwitch.findFilepath(firstFile)
if pathFound:
elif pathFound:
menu.addAction(QtGui.QPixmap(resourcespath + u"film_go.png"), getMessage("openmedia-menu-label"), lambda: self.openFile(pathFound))
if pathFound:
menu.addAction(QtGui.QPixmap(resourcespath + u"folder_film.png"),
getMessage('open-containing-folder'),
lambda: utils.open_system_file_browser(pathFound))