Differentiate between playlist tabs and db objects. Fixes #17

This commit is contained in:
Keith Edmunds 2021-06-06 16:40:36 +01:00
parent 20bd178cf1
commit caf78df17f

View File

@ -299,7 +299,7 @@ class Window(QMainWindow, Ui_MainWindow):
with Session() as session:
playlist_dbs = [p for p in Playlists.get_all_playlists(session)
if p.id != self.visible_playlist_tab().id]
dlg = SelectPlaylistDialog(self, playlists=playlist_dbs)
dlg = SelectPlaylistDialog(self, playlist_dbs=playlist_dbs)
dlg.exec()
if not dlg.plid:
return