Skip to content

Commit

Permalink
fix run button after failed schema import
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Dec 23, 2022
1 parent 0a01b57 commit 6562631
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion QgisModelBaker/gui/panel/session_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,17 @@ def run(self, edited_command=None):
self.progress_bar.setValue(0)
if not self.db_action_type == DbActionType.GENERATE:
self.set_button_to_create_without_constraints()
else:
self.set_button_to_create()
self.is_running = False
return False
except JavaNotFoundError as e:
self.print_info.emit(e.error_string, LogColor.COLOR_FAIL)
self.progress_bar.setValue(0)
self.set_button_to_create_without_constraints()
if not self.db_action_type == DbActionType.GENERATE:
self.set_button_to_create_without_constraints()
else:
self.set_button_to_create()
self.is_running = False
return False

Expand Down

0 comments on commit 6562631

Please sign in to comment.