]> git.lyx.org Git - features.git/commitdiff
#6917 move forward after adding a word to personal dictionary or the list of ignored...
authorStephan Witt <switt@lyx.org>
Tue, 28 Sep 2010 15:09:06 +0000 (15:09 +0000)
committerStephan Witt <switt@lyx.org>
Tue, 28 Sep 2010 15:09:06 +0000 (15:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35525 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiSpellchecker.cpp
src/frontends/qt4/GuiSpellchecker.h

index e8cf7b25e73c1ca4a205bb11aea9d739f46f9b66..4059a7be93dd0f88bbcfe808254dd7088e326c33 100644 (file)
@@ -157,6 +157,13 @@ void GuiSpellchecker::updateView()
 }
 
 
+void GuiSpellchecker::forward()
+{
+       dispatch(FuncRequest(LFUN_ESCAPE));
+       dispatch(FuncRequest(LFUN_CHAR_FORWARD));
+}
+       
+       
 void GuiSpellchecker::on_languageCO_activated(int index)
 {
        string const lang =
@@ -174,6 +181,7 @@ void GuiSpellchecker::on_ignoreAllPB_clicked()
        /// replace all occurrences of word
        if (d->word_.lang() && !d->word_.word().empty())
                theSpellChecker()->accept(d->word_);
+       forward();
        check();
 }
 
@@ -182,14 +190,14 @@ void GuiSpellchecker::on_addPB_clicked()
 {
        /// insert word in personal dictionary
        theSpellChecker()->insert(d->word_);
+       forward();
        check();
 }
 
 
 void GuiSpellchecker::on_ignorePB_clicked()
 {
-       dispatch(FuncRequest(LFUN_ESCAPE));
-       dispatch(FuncRequest(LFUN_CHAR_FORWARD));
+       forward();
        check();
 }
 
index 002a869ac97dba8aff467b013804db2d78ccbb20..7c5d164eb274175218c6b647d59c6cc848c8bfc6 100644 (file)
@@ -58,8 +58,9 @@ private:
        bool needBufferOpen() const { return true; }
        ///}
 
+       /// move to next position after current word
+       void forward();
        /// check text until next misspelled/unknown word
-       /// returns true when finished
        void check();
        /// show count of checked words at normal exit
        void showSummary();