* 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
This commit is contained in:
Jürgen Spitzmüller 2008-09-09 13:18:36 +00:00
parent d00594931c
commit 8c097556d5

View 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();
}