mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Results: Fix db save results open and display.
This commit is contained in:
1 parent
9375827949
commit
dbcdace348
5 files changed
+31
-9
No files matched your search
@@ -593,6 +593,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
def set_results(self, solver, results):
|
||||
self._last_solver = solver
|
||||
self._last_results = results
|
||||
self._study.results = results
|
||||
|
||||
self.enable_actions("action_menu_results_last", True)
|
||||
|
||||
@@ -1607,6 +1608,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
if self._last_solver is None:
|
||||
return
|
||||
|
||||
if self._study is not None and self._study.results is not None:
|
||||
self._last_results = self._study.results
|
||||
|
||||
if self._last_solver._type == "mage8":
|
||||
self.open_solver_results(self._last_solver,
|
||||
self._last_results)
|
||||
|
||||
Reference in new issue
Block a user