diff options
author | Leslie Linden <leslie@lindenlab.com> | 2012-01-04 17:36:36 -0800 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2012-01-04 17:36:36 -0800 |
commit | 46ac2341debf30264960c3ffe0082e9960910529 (patch) | |
tree | 49bc1b1bedeebcef16f07df9e0faefda62c0976e /indra/newview/llfloatermediasettings.cpp | |
parent | 6fed3bed60c2b721ff26c319a86cd5f26afe084f (diff) | |
parent | 990b5aea2b92ac8c06651ad94db9506a42ba1be0 (diff) |
Merge from viewer-experience
Diffstat (limited to 'indra/newview/llfloatermediasettings.cpp')
-rw-r--r-- | indra/newview/llfloatermediasettings.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llfloatermediasettings.cpp b/indra/newview/llfloatermediasettings.cpp index b5f1b967df..895e16adef 100644 --- a/indra/newview/llfloatermediasettings.cpp +++ b/indra/newview/llfloatermediasettings.cpp @@ -212,10 +212,13 @@ void LLFloaterMediaSettings::commitFields() //static void LLFloaterMediaSettings::clearValues( bool editable) { - // clean up all panels before updating - sInstance->mPanelMediaSettingsGeneral ->clearValues(sInstance->mPanelMediaSettingsGeneral, editable); - sInstance->mPanelMediaSettingsSecurity ->clearValues(sInstance->mPanelMediaSettingsSecurity, editable); - sInstance->mPanelMediaSettingsPermissions->clearValues(sInstance->mPanelMediaSettingsPermissions, editable); + if (sInstance) + { + // clean up all panels before updating + sInstance->mPanelMediaSettingsGeneral ->clearValues(sInstance->mPanelMediaSettingsGeneral, editable); + sInstance->mPanelMediaSettingsSecurity ->clearValues(sInstance->mPanelMediaSettingsSecurity, editable); + sInstance->mPanelMediaSettingsPermissions->clearValues(sInstance->mPanelMediaSettingsPermissions, editable); + } } //////////////////////////////////////////////////////////////////////////////// |