From 78bcb5270325e961b1a61a9102962c40168732b1 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Wed, 19 Feb 2014 11:38:24 +0200 Subject: [PATCH] 7097: attaching spell checker isn't undoable Quick-and-dirty fix removing the hang. Needs to be refactored in order not to expose the knowledge of StyleTextEditor's innards to Spell. --- gramps/gui/spell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gui/spell.py b/gramps/gui/spell.py index b1d134a4c..ccc48ef89 100644 --- a/gramps/gui/spell.py +++ b/gramps/gui/spell.py @@ -128,7 +128,9 @@ class Spell(object): #other installed one will also be available self.gtkspell_spell.set_language("en") #if that fails no spellchecker will be available + self.textview.textbuffer.not_undoable_action = True success = self.gtkspell_spell.attach(self.textview) + self.textview.textbuffer.not_undoable_action = False try: #show decoded language codes in the context menu #requires the iso-codes package from http://pkg-isocodes.alioth.debian.org