Fixed a minor issue when insert from file was cancelled.

This commit is contained in:
Veronica K. B. Olsen committed 2019-11-17 22:10:33 +01:00
1 parent d63e07becb
commit ba9f471695
2 files changed
+14 -3

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: