Merge branch 'master' into large_text_performance

This commit is contained in:
Veronica K. Berglyd Olsen authored and GitHub committed 2019-11-19 10:42:05 +01:00
commit af5159cdaf
9 files changed
+53 -10

No files matched your search

+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: