Merge branch 'master' into large_text_performance

This commit is contained in:
Veronica K. Berglyd Olsen
2019-11-19 10:42:05 +01:00
committed by GitHub
9 changed files with 53 additions and 10 deletions
+8
View File
@@ -229,6 +229,14 @@ class GuiDocEditor(QTextEdit):
return True
def replaceText(self, theText):
"""Replaces the text of the current document with the provided
text. This also clears undo history.
"""
self.setPlainText(theText)
self.setDocumentChanged(True)
return
def saveText(self):
if self.nwDocument.theItem is None: