Fix enabled state of gear button in blocklist

Ansariel 2014-12-11 14:34:34 +01:00
parent 105ef3a1bf
commit e3d3e964fe
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ void FSPanelBlockList::refreshBlockedList()
void FSPanelBlockList::updateButtons()
{
getChildView("unblock_btn")->setEnabled(mBlockedList->getNumSelected() > 0);
bool has_selection = mBlockedList->getNumSelected() > 0;
getChildView("blocked_gear_btn")->setEnabled(has_selection);
getChildView("unblock_btn")->setEnabled(has_selection);
}
void FSPanelBlockList::removeMutes()