Commit 470eae8b authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

pamhyr: Fix #20 study reload whene study is not saved on a file.

Showing with 6 additions and 2 deletions
+6 -2
...@@ -139,8 +139,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): ...@@ -139,8 +139,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
self.trans = QTranslator(self) self.trans = QTranslator(self)
# self.ui.retranslateUi() # self.ui.retranslateUi()
if self.conf.last_study != "" and not self.conf.close_correctly: if not self.conf.close_correctly:
self.dialog_reopen_study() if self.conf.last_study != "":
self.dialog_reopen_study()
if _doc == "external": if _doc == "external":
logger.info("doc: Internal documentation is not available...") logger.info("doc: Internal documentation is not available...")
......
...@@ -316,6 +316,9 @@ class Config(SQL): ...@@ -316,6 +316,9 @@ class Config(SQL):
self.commit() self.commit()
def set_last_study(self, filename): def set_last_study(self, filename):
if filename is None:
return
self.last_study = filename self.last_study = filename
self.close_correctly = False self.close_correctly = False
self.execute( self.execute(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment