Don't create floater instance if not necessary

Sun, 15 Apr 2018 23:30:38 +0200

author
Ansariel
date
Sun, 15 Apr 2018 23:30:38 +0200
changeset 55108
81a5688eec5b
parent 55107
cc7de5f2389b
child 55109
0e49f8cd743d

Don't create floater instance if not necessary

indra/newview/llviewercontrol.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llviewercontrol.cpp	Sun Apr 15 17:15:03 2018 +0200
     1.2 +++ b/indra/newview/llviewercontrol.cpp	Sun Apr 15 23:30:38 2018 +0200
     1.3 @@ -953,7 +953,7 @@
     1.4  // <FS:LO> Add ability for the statistics window to not be able to receive focus
     1.5  void handleFSStatisticsNoFocusChanged(const LLSD& newvalue)
     1.6  {
     1.7 -	LLFloater* stats = LLFloaterReg::getInstance("stats");
     1.8 +	LLFloater* stats = LLFloaterReg::findInstance("stats");
     1.9  	if (stats)
    1.10  	{
    1.11  		stats->setIsChrome(newvalue.asBoolean());

mercurial