Fix error message

This commit is contained in:
Keith Edmunds 2024-07-03 13:50:40 +01:00
parent a8f709d2da
commit 8bc41f2fcd

View File

@ -876,12 +876,12 @@ class Window(QMainWindow, Ui_MainWindow):
# Need to ensure that the new playlist is committed to
# the database before it is opened by the model.
session.commit()
if playlist:
log.error("Playlist failed to create")
playlist.mark_open()
self.create_playlist_tab(playlist)
else:
log.error("Playlist failed to create")
def open_playlist(self) -> None:
"""Open existing playlist"""