Skip to content

Commit

Permalink
Merge pull request #773 from opengisch/fixrunbutton
Browse files Browse the repository at this point in the history
Fix run button after failed schema import
  • Loading branch information
signedav authored Dec 23, 2022
2 parents 0a01b57 + 6562631 commit ebc0113
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 ebc0113

Please sign in to comment.