Make sure the open document is saved before applying changes from the config dialog
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user