Make sure the open document is saved before applying changes from the config dialog

This commit is contained in:
Veronica K. B. Olsen committed 2019-10-20 14:28:51 +02:00
1 parent fe12e99735
commit 79116f8977
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -259,7 +259,7 @@ class GuiConfigEditGeneral(QWidget):
self.mainConf.backupOnClose = backupOnClose
self.mainConf.askBeforeBackup = askBeforeBackup
self.mainConf.confChanged = True
self.mainConf.confChanged = True
return validEntries, needsRestart
+1
View File
@@ -502,6 +502,7 @@ class GuiMain(QMainWindow):
logger.debug("Applying new preferences")
self.initMain()
self.theTheme.updateTheme()
self.saveDocument()
self.docEditor.initEditor()
self.docViewer.initViewer()
return True