Fix unsaved changes confirmation check when changing selected script

This commit is contained in:
Bob Swift
2021-06-09 10:03:35 -06:00
committed by Philipp Wolfer
parent aa2425f229
commit 99be9dbfe5

View File

@@ -757,7 +757,7 @@ class ScriptEditorDialog(PicardDialog):
skip_check (bool): Skip the check for unsaved edits. Defaults to False.
send_signal (bool, optional): Determines whether the update signal should be emitted. Defaults to True.
"""
if not self.loading or skip_check or self.unsaved_changes_confirmation():
if self.loading or skip_check or self.unsaved_changes_confirmation():
script_item = self.get_selected_item()
self.ui.script_title.setText(script_item['title'])
self.set_script(script_item['script'])