* fix bug 6089.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30667 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-07-18 13:46:05 +00:00
parent 03270dd2a6
commit 11d3a3b7bc
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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();