diff options
Diffstat (limited to 'indra/newview/llfloaterhud.cpp')
-rw-r--r-- | indra/newview/llfloaterhud.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/indra/newview/llfloaterhud.cpp b/indra/newview/llfloaterhud.cpp index 2ef5ebfca0..82b3097ee2 100644 --- a/indra/newview/llfloaterhud.cpp +++ b/indra/newview/llfloaterhud.cpp @@ -10,11 +10,15 @@ #include "llviewerprecompiledheaders.h" #include "llfloaterhud.h" + +// Viewer libs #include "llviewercontrol.h" -#include "lluictrlfactory.h" #include "llwebbrowserctrl.h" #include "llalertdialog.h" +// Linden libs +#include "lluictrlfactory.h" + // statics LLFloaterHUD* LLFloaterHUD::sInstance = 0; @@ -113,7 +117,12 @@ void LLFloaterHUD::showHUD() hud->setFrontmost(FALSE); } -void LLFloaterHUD::closeHUD() +// Save our visibility state on close in case the user accidentally +// quit the application while the tutorial was visible. +// virtual +void LLFloaterHUD::onClose(bool app_quitting) { - if (sInstance) sInstance->close(); + bool stay_visible = app_quitting; + gSavedSettings.setBOOL("ShowTutorial", stay_visible); + destroy(); } |