diff options
author | Palmer Truelson <palmer@lindenlab.com> | 2009-06-26 12:17:35 +0000 |
---|---|---|
committer | Palmer Truelson <palmer@lindenlab.com> | 2009-06-26 12:17:35 +0000 |
commit | e2655d4c4b38ad2336ad136a057d315e31195080 (patch) | |
tree | 108ec4f36f6465f5d7d7e374f0b1fa2e78a18362 /indra/newview/llappviewer.cpp | |
parent | 572ee5c9db2aeec17e1cc7e6c69c72ad8c7ff6fc (diff) |
DEV-34569
new --nonotifications command line option for automated testing
Reviewed by Q
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d0d6a118b3..2c570de697 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -641,6 +641,11 @@ bool LLAppViewer::init() // Get the single value from the crash settings file, if it exists std::string crash_settings_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, CRASH_SETTINGS_FILE); gCrashSettings.loadFromFile(crash_settings_filename); + if(gSavedSettings.getBOOL("IgnoreAllNotifications")) + { + gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ALWAYS_SEND); + gCrashSettings.saveToFile(crash_settings_filename, FALSE); + } ///////////////////////////////////////////////// // OS-specific login dialogs @@ -1971,6 +1976,11 @@ bool LLAppViewer::initConfiguration() { LLAgentPilot::sReplaySession = TRUE; } + + if (clp.hasOption("nonotifications")) + { + gSavedSettings.setBOOL("IgnoreAllNotifications", TRUE); + } if (clp.hasOption("debugsession")) { |