Fix enabled state of gear button in blocklist

Thu, 11 Dec 2014 14:34:34 +0100

author
Ansariel
date
Thu, 11 Dec 2014 14:34:34 +0100
changeset 43055
5f1e2abf615c
parent 43054
6524550a1a3e
child 43056
a795a0939ee7

Fix enabled state of gear button in blocklist

indra/newview/fspanelblocklist.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/fspanelblocklist.cpp	Thu Dec 11 14:29:23 2014 +0100
     1.2 +++ b/indra/newview/fspanelblocklist.cpp	Thu Dec 11 14:34:34 2014 +0100
     1.3 @@ -167,7 +167,9 @@
     1.4  
     1.5  void FSPanelBlockList::updateButtons()
     1.6  {
     1.7 -	getChildView("unblock_btn")->setEnabled(mBlockedList->getNumSelected() > 0);
     1.8 +	bool has_selection = mBlockedList->getNumSelected() > 0;
     1.9 +	getChildView("blocked_gear_btn")->setEnabled(has_selection);
    1.10 +	getChildView("unblock_btn")->setEnabled(has_selection);
    1.11  }
    1.12  
    1.13  void FSPanelBlockList::removeMutes()

mercurial