]> git.lyx.org Git - features.git/commitdiff
* GuiRef.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 9 Sep 2008 13:18:36 +0000 (13:18 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 9 Sep 2008 13:18:36 +0000 (13:18 +0000)
- The GuiRef dialog does not respond to keyboard events if the
  reference list is empty. This is because the reference list has the
  focus proxy and is disabled when the list is empty. Therefore I removed
  the focus proxy from the list if it is disabled.
  (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26345 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiRef.cpp

index a9dd2bf3b6407f3f1e349b067037375ccf41b0c9..24bae1550f4fdf84ee9c17394716702bd54e5215 100644 (file)
@@ -361,6 +361,8 @@ void GuiRef::updateRefs()
        buf->getLabelList(refs_);
        sortCB->setEnabled(!refs_.empty());
        refsLW->setEnabled(!refs_.empty());
+       // refsLW should only be the focus proxy when it is enabled
+       setFocusProxy(refs_.empty() ? 0 : refsLW);
        gotoPB->setEnabled(!refs_.empty());
        redoRefs();
 }