Simply code for FSSelectIncludeGroupOwned setting

Mon, 15 Dec 2014 10:50:13 +0100

author
Ansariel
date
Mon, 15 Dec 2014 10:50:13 +0100
changeset 43076
b0e9a2650c5b
parent 43075
748d75af17b6
child 43077
09ef95c5afef

Simply code for FSSelectIncludeGroupOwned setting

indra/newview/llviewermenu.cpp file | annotate | diff | revisions
indra/newview/skins/default/xui/en/menu_viewer.xml file | annotate | diff | revisions
     1.1 --- a/indra/newview/llviewermenu.cpp	Mon Dec 15 10:44:06 2014 +0100
     1.2 +++ b/indra/newview/llviewermenu.cpp	Mon Dec 15 10:50:13 2014 +0100
     1.3 @@ -9050,20 +9050,6 @@
     1.4  	return gSavedSettings.getBOOL("DebugShowXUINames");
     1.5  }
     1.6  
     1.7 -// <FS:Ansariel> FIRE-304: Option to exclude group owned objects
     1.8 -class FSToolSelectIncludeGroupOwned : public view_listener_t
     1.9 -{
    1.10 -	bool handleEvent(const LLSD& userdata)
    1.11 -	{
    1.12 -		BOOL cur_val = gSavedSettings.getBOOL("FSSelectIncludeGroupOwned");
    1.13 -
    1.14 -		gSavedSettings.setBOOL("FSSelectIncludeGroupOwned", ! cur_val );
    1.15 -
    1.16 -		return true;
    1.17 -	}
    1.18 -};
    1.19 -// </FS:Ansariel>
    1.20 -
    1.21  // <FS:CR> Resync Animations
    1.22  class FSToolsResyncAnimations : public view_listener_t
    1.23  {
     2.1 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml	Mon Dec 15 10:44:06 2014 +0100
     2.2 +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml	Mon Dec 15 10:50:13 2014 +0100
     2.3 @@ -1634,7 +1634,8 @@
     2.4                      <menu_item_check.on_check
     2.5                       control="FSSelectIncludeGroupOwned" />
     2.6                      <menu_item_check.on_click
     2.7 -                     function="Tools.SelectIncludeGroupOwned" />
     2.8 +                     function="ToggleControl"
     2.9 +                     parameter="FSSelectIncludeGroupOwned" />
    2.10                  </menu_item_check>
    2.11  
    2.12            <menu_item_separator/>

mercurial