From 91e6e36b83d981931dcc4eb39d7cd11cfee356e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 21 May 2005 10:36:10 +0000 Subject: [PATCH] fix qcitation search feature git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9964 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt2/ChangeLog | 5 +++++ src/frontends/qt2/QCitationDialog.C | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 687f639c9d..0f57853c8d 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2005-06-21 Jürgen Spitzmüller + + * QCitationDialog.C: explicitely setCurrentItem on search + operations (else results are not selected). + 2005-05-14 Michael Schmitt * Dialogs.C: add missing ":" to text messages diff --git a/src/frontends/qt2/QCitationDialog.C b/src/frontends/qt2/QCitationDialog.C index fd1bc23d39..590f4da3ce 100644 --- a/src/frontends/qt2/QCitationDialog.C +++ b/src/frontends/qt2/QCitationDialog.C @@ -282,7 +282,10 @@ void QCitationDialog::find(biblio::Direction dir) } // Update the display + // note that we have multi selection mode! + add_->availableLB->setSelected(sel, false); add_->availableLB->setSelected(found, true); + add_->availableLB->setCurrentItem(found); add_->availableLB->ensureCurrentVisible(); }