summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorWilliam Todd Stinson <stinson@lindenlab.com>2012-12-12 12:48:59 -0800
committerWilliam Todd Stinson <stinson@lindenlab.com>2012-12-12 12:48:59 -0800
commit78b7a4b37c4762ea9503c1da0f79ab8fc412c2b9 (patch)
treeb252cc03e1cbee6e705b3339c61fa8979a9cadf7 /indra/newview/llfloaterpreference.cpp
parent3d7aaaada853d950888a2fd0fe3e2f375bd5bbb0 (diff)
parenta334f41f8ebec5ef812334e5086e54256e2bf7df (diff)
Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-release.
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rwxr-xr-xindra/newview/llfloaterpreference.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 2c3f460701..13d8a79f8d 100755
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -749,7 +749,10 @@ void LLFloaterPreference::onClose(bool app_quitting)
{
gSavedSettings.setS32("LastPrefTab", getChild<LLTabContainer>("pref core")->getCurrentPanelIndex());
LLPanelLogin::setAlwaysRefresh(false);
- cancel();
+ if (!app_quitting)
+ {
+ cancel();
+ }
}
void LLFloaterPreference::onOpenHardwareSettings()