fix qcitation search feature

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9964 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-05-21 10:36:10 +00:00
parent e5ae321dab
commit 91e6e36b83
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-06-21 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QCitationDialog.C: explicitely setCurrentItem on search
operations (else results are not selected).
2005-05-14 Michael Schmitt <michael.schmitt@teststep.org> 2005-05-14 Michael Schmitt <michael.schmitt@teststep.org>
* Dialogs.C: add missing ":" to text messages * Dialogs.C: add missing ":" to text messages

View File

@ -282,7 +282,10 @@ void QCitationDialog::find(biblio::Direction dir)
} }
// Update the display // Update the display
// note that we have multi selection mode!
add_->availableLB->setSelected(sel, false);
add_->availableLB->setSelected(found, true); add_->availableLB->setSelected(found, true);
add_->availableLB->setCurrentItem(found);
add_->availableLB->ensureCurrentVisible(); add_->availableLB->ensureCurrentVisible();
} }