Differentiate between playlist tabs and db objects. Fixes #17
This commit is contained in:
parent
20bd178cf1
commit
caf78df17f
@ -299,7 +299,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
with Session() as session:
|
with Session() as session:
|
||||||
playlist_dbs = [p for p in Playlists.get_all_playlists(session)
|
playlist_dbs = [p for p in Playlists.get_all_playlists(session)
|
||||||
if p.id != self.visible_playlist_tab().id]
|
if p.id != self.visible_playlist_tab().id]
|
||||||
dlg = SelectPlaylistDialog(self, playlists=playlist_dbs)
|
dlg = SelectPlaylistDialog(self, playlist_dbs=playlist_dbs)
|
||||||
dlg.exec()
|
dlg.exec()
|
||||||
if not dlg.plid:
|
if not dlg.plid:
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user