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.backupOnClose = backupOnClose
|
||||||
self.mainConf.askBeforeBackup = askBeforeBackup
|
self.mainConf.askBeforeBackup = askBeforeBackup
|
||||||
|
|
||||||
self.mainConf.confChanged = True
|
self.mainConf.confChanged = True
|
||||||
|
|
||||||
return validEntries, needsRestart
|
return validEntries, needsRestart
|
||||||
|
|
||||||
|
|||||||
@@ -502,6 +502,7 @@ class GuiMain(QMainWindow):
|
|||||||
logger.debug("Applying new preferences")
|
logger.debug("Applying new preferences")
|
||||||
self.initMain()
|
self.initMain()
|
||||||
self.theTheme.updateTheme()
|
self.theTheme.updateTheme()
|
||||||
|
self.saveDocument()
|
||||||
self.docEditor.initEditor()
|
self.docEditor.initEditor()
|
||||||
self.docViewer.initViewer()
|
self.docViewer.initViewer()
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user