Retain playlist UI filename on playlist change unless new filename specified

This commit is contained in:
Et0h 2016-01-30 14:51:42 +00:00
parent b276bc3688
commit 0f9e179282

View File

@ -1417,7 +1417,8 @@ class MainWindow(QtGui.QMainWindow):
if self.updatingPlaylist:
self.ui.showDebugMessage("Trying to set playlist while it is already being updated")
if newPlaylist == self.playlistState:
self.playlist.setPlaylistIndexFilename(newIndexFilename)
if newIndexFilename:
self.playlist.setPlaylistIndexFilename(newIndexFilename)
self.updatingPlaylist = False
return
self.updatingPlaylist = True