From a64ecd7e2ea1d19a5c0da79260cf8478089d1cee Mon Sep 17 00:00:00 2001 From: spitz Date: Sat, 18 Jul 2009 13:46:05 +0000 Subject: [PATCH] * fix bug 6089. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30667 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiSpellchecker.cpp | 6 +++--- src/frontends/qt4/GuiSpellchecker.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiSpellchecker.cpp b/src/frontends/qt4/GuiSpellchecker.cpp index b1cfcef655..c6a4adf20b 100644 --- a/src/frontends/qt4/GuiSpellchecker.cpp +++ b/src/frontends/qt4/GuiSpellchecker.cpp @@ -92,7 +92,7 @@ void GuiSpellchecker::on_closePB_clicked() } -void GuiSpellchecker::on_suggestionsLW_itemChanged(QListWidgetItem * item) +void GuiSpellchecker::on_suggestionsLW_itemClicked(QListWidgetItem * item) { if (d->ui.replaceCO->count() != 0) d->ui.replaceCO->setItemText(0, item->text()); @@ -194,13 +194,13 @@ void GuiSpellchecker::updateSuggestions(docstring_list & words) lw->clear(); if (words.empty()) { - on_suggestionsLW_itemChanged(new QListWidgetItem(suggestion)); + on_suggestionsLW_itemClicked(new QListWidgetItem(suggestion)); return; } for (size_t i = 0; i != words.size(); ++i) lw->addItem(toqstr(words[i])); - on_suggestionsLW_itemChanged(lw->item(0)); + on_suggestionsLW_itemClicked(lw->item(0)); lw->setCurrentRow(0); } diff --git a/src/frontends/qt4/GuiSpellchecker.h b/src/frontends/qt4/GuiSpellchecker.h index dfa64f2220..58458e8ec8 100644 --- a/src/frontends/qt4/GuiSpellchecker.h +++ b/src/frontends/qt4/GuiSpellchecker.h @@ -37,7 +37,7 @@ private Q_SLOTS: void on_closePB_clicked(); void on_findNextPB_clicked(); void on_replaceAllPB_clicked(); - void on_suggestionsLW_itemChanged(QListWidgetItem *); + void on_suggestionsLW_itemClicked(QListWidgetItem *); void on_replaceCO_highlighted(const QString & str); void on_ignoreAllPB_clicked(); void on_addPB_clicked(); -- 2.11.4.GIT