Fix error message
This commit is contained in:
parent
a8f709d2da
commit
8bc41f2fcd
@ -876,12 +876,12 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
|
|
||||||
# Need to ensure that the new playlist is committed to
|
# Need to ensure that the new playlist is committed to
|
||||||
# the database before it is opened by the model.
|
# the database before it is opened by the model.
|
||||||
|
|
||||||
session.commit()
|
session.commit()
|
||||||
if playlist:
|
if playlist:
|
||||||
log.error("Playlist failed to create")
|
|
||||||
playlist.mark_open()
|
playlist.mark_open()
|
||||||
self.create_playlist_tab(playlist)
|
self.create_playlist_tab(playlist)
|
||||||
|
else:
|
||||||
|
log.error("Playlist failed to create")
|
||||||
|
|
||||||
def open_playlist(self) -> None:
|
def open_playlist(self) -> None:
|
||||||
"""Open existing playlist"""
|
"""Open existing playlist"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user