From: Jürgen Spitzmüller Date: Tue, 9 Sep 2008 13:18:36 +0000 (+0000) Subject: * GuiRef.cpp: X-Git-Tag: 1.6.10~3512 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8c097556d581d6c3c316092c9e6a332d2bad1593;p=features.git * GuiRef.cpp: - 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 --- diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index a9dd2bf3b6..24bae1550f 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -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(); }