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.
This commit is contained in:
parent
84d5b6156f
commit
8dd6d92184
@ -269,7 +269,8 @@ class EditNote(EditPrimary):
|
|||||||
# setup initial values for textview and textbuffer
|
# setup initial values for textview and textbuffer
|
||||||
if self.obj:
|
if self.obj:
|
||||||
self.empty = False
|
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:
|
# Reset the undoable buffer:
|
||||||
self.texteditor.reset()
|
self.texteditor.reset()
|
||||||
_LOG.debug("Initial Note: %s" % str(self.texteditor.get_text()))
|
_LOG.debug("Initial Note: %s" % str(self.texteditor.get_text()))
|
||||||
|
Loading…
Reference in New Issue
Block a user