mirror of https://gitlab.com/pamhyr/pamhyr2
MainWindow: Fix save callback.
parent
874f592cf4
commit
81d58122d6
|
|
@ -277,7 +277,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
"action_menu_edit": self.open_edit_study,
|
||||
"action_menu_open": self.open_model,
|
||||
"action_menu_save": lambda: self.save_study(),
|
||||
"action_menu_save_as": self.save_as_study,
|
||||
"action_menu_save_as": lambda: self.save_as_study(),
|
||||
"action_menu_numerical_parameter": self.open_solver_parameters,
|
||||
"action_menu_edit_scenarios": self.open_scenarios,
|
||||
"action_menu_edit_network": self.open_network,
|
||||
|
|
@ -313,7 +313,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
"action_menu_about": self.open_about,
|
||||
# ToolBar action
|
||||
"action_toolBar_open": self.open_model,
|
||||
"action_toolBar_save": self.save_study,
|
||||
"action_toolBar_save": lambda: self.save_study(),
|
||||
"action_toolBar_close": self.close_model,
|
||||
"action_toolBar_run_solver": self.run_lasest_solver,
|
||||
# Current actions
|
||||
|
|
@ -1566,6 +1566,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
)
|
||||
dlg.exec_()
|
||||
results = self._tmp_results
|
||||
self.last_results = results
|
||||
|
||||
# No results available
|
||||
if results is None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue