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

This commit is contained in:
Veronica K. B. Olsen
2019-10-20 14:28:51 +02:00
parent fe12e99735
commit 79116f8977
2 changed files with 2 additions and 1 deletions
+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