mirror of https://gitlab.com/pamhyr/pamhyr2
pamhyr: Fix #20 study reload whene study is not saved on a file.
parent
9b53b4302b
commit
470eae8b92
|
|
@ -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):
|
||||||
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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue