From 8c097556d581d6c3c316092c9e6a332d2bad1593 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 9 Sep 2008 13:18:36 +0000 Subject: [PATCH] * 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 --- src/frontends/qt4/GuiRef.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.39.2