GuiRef: only enable "Group" CB if non-empty refs

This commit is contained in:
Scott Kostyshak 2013-04-19 22:39:17 -04:00
parent 21d1f97cad
commit b75ecdfaf0

View File

@ -462,6 +462,7 @@ void GuiRef::updateRefs()
sortCB->setEnabled(!refs_.empty()); sortCB->setEnabled(!refs_.empty());
caseSensitiveCB->setEnabled(sortCB->isEnabled() && sortCB->isChecked()); caseSensitiveCB->setEnabled(sortCB->isEnabled() && sortCB->isChecked());
refsTW->setEnabled(!refs_.empty()); refsTW->setEnabled(!refs_.empty());
groupCB->setEnabled(!refs_.empty());
// refsTW should only be the focus proxy when it is enabled // refsTW should only be the focus proxy when it is enabled
setFocusProxy(refs_.empty() ? 0 : refsTW); setFocusProxy(refs_.empty() ? 0 : refsTW);
gotoPB->setEnabled(!refs_.empty()); gotoPB->setEnabled(!refs_.empty());