]> git.lyx.org Git - features.git/commitdiff
Patch from Martin Vermeer for bug 2218.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 27 Jun 2006 12:20:16 +0000 (12:20 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 27 Jun 2006 12:20:16 +0000 (12:20 +0000)
* src/frontends/xforms/FormSpellchecker.C (update):
* src/frontends/qt[34]/QSpellchecker.C (update_contents): fix bug
2218: Spellchecker doesn't pop up dialogue window for the first
misspelled word.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14246 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt3/QSpellchecker.C
src/frontends/qt4/QSpellchecker.C
src/frontends/xforms/FormSpellchecker.C

index 5ccbd8572600770bc48fe97c6ddb2a815a8bf4e8..680086a4db4417b901e52ad31836ccea9c56597c 100644 (file)
@@ -47,7 +47,9 @@ void QSpellchecker::build_dialog()
 
 void QSpellchecker::update_contents()
 {
-       controller().check();
+       if (isVisible() || controller().exitEarly()) {
+               controller().check();
+       }
 }
 
 
index 878469731f8e5dd9596be16db61401830f49743e..510de0a3ce1c3c9d2cc5be2bd52c9e2ccb6378a1 100644 (file)
@@ -46,7 +46,9 @@ void QSpellchecker::build_dialog()
 
 void QSpellchecker::update_contents()
 {
-       controller().check();
+       if (isVisible() || controller().exitEarly()) {
+               controller().check();
+       }
 }
 
 
index e19c710ff72344ac87eec259825d50ce6ab6e0d9..30f6ae5846515291aab98453c4e86d91439b71a5 100644 (file)
@@ -80,7 +80,8 @@ void FormSpellchecker::build()
 
 void FormSpellchecker::update()
 {
-       controller().check();
+       if (isVisible() || controller().exitEarly())
+               controller().check();
 }