From 8dd6d92184efaa45a0b00163aeb958ae62be5a7e Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Tue, 25 Feb 2014 15:38:23 +0200 Subject: [PATCH] 7097: EditNote hangs initially on misspelled note Disable undo during the initial note text population, so as to avoid bombardment with gtkspell-... tags for the misspelled text. --- gramps/gui/editors/editnote.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/editors/editnote.py b/gramps/gui/editors/editnote.py index 71bfd3448..25640afcc 100644 --- a/gramps/gui/editors/editnote.py +++ b/gramps/gui/editors/editnote.py @@ -269,7 +269,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()))