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.
This commit is contained in:
Vassilii Khachaturov 2014-02-19 11:38:24 +02:00
parent ba2766e5b2
commit 78bcb52703

View File

@ -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