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