Delayed cursor move for large documents speeds up loading significantly

This commit is contained in:
Veronica K. B. Olsen
2020-10-06 01:14:14 +02:00
parent 003d28f9db
commit 93851d84bf
2 changed files with 73 additions and 26 deletions
+1
View File
@@ -448,6 +448,7 @@ class GuiMain(QMainWindow):
"""Close the document and clear the editor and title field.
"""
if self.hasProject:
self.docEditor.saveCursorPosition()
if self.docEditor.docChanged:
self.saveDocument()
self.docEditor.clearEditor()