Fixed a minor issue when insert from file was cancelled.

This commit is contained in:
Veronica K. B. Olsen
2019-11-17 22:10:33 +01:00
parent d63e07becb
commit ba9f471695
2 changed files with 14 additions and 3 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: