7097: EditNote hangs initially on misspelled note

reapply [4182ac] from gramps40
This commit is contained in:
Vassilii Khachaturov 2014-02-25 15:49:43 +02:00
parent 7f2bd919a1
commit 17a4147644

View File

@ -270,7 +270,8 @@ class EditNote(EditPrimary):
# setup initial values for textview and textbuffer
if self.obj:
self.empty = False
self.texteditor.set_text(self.obj.get_styledtext())
with self.texteditor.undo_disabled():
self.texteditor.set_text(self.obj.get_styledtext())
# Reset the undoable buffer:
self.texteditor.reset()
_LOG.debug("Initial Note: %s" % str(self.texteditor.get_text()))