Give focus to the filter in GuiRef

This is now consistent with GuiCitation. Compared to the previous behaviour
there is only one down key press difference.
This commit is contained in:
Guillaume Munch 2017-02-26 22:15:50 +01:00
parent 750c48eda3
commit 06416763ac

View File

@ -130,6 +130,8 @@ GuiRef::GuiRef(GuiView & lv)
restored_buffer_ = -1;
active_buffer_ = -1;
setFocusProxy(filter_);
}
@ -539,8 +541,6 @@ void GuiRef::updateRefs()
sortingCO->setEnabled(!refs_.empty());
refsTW->setEnabled(!refs_.empty());
groupCB->setEnabled(!refs_.empty());
// refsTW should only be the focus proxy when it is enabled
setFocusProxy(refs_.empty() ? 0 : refsTW);
redoRefs();
}