diff options
| -rw-r--r-- | indra/newview/llfloaterpreference.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 4ce35643b1..a090fa3f44 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -2704,6 +2704,15 @@ void LLPanelPreferenceGraphics::cancel()  void LLPanelPreferenceGraphics::saveSettings()  {  	resetDirtyChilds(); +	if (gSavedSettings.getString("PresetGraphicActive").empty()) +	{ +		LLFloaterPreference* instance = LLFloaterReg::findTypedInstance<LLFloaterPreference>("preferences"); +		if (instance) +		{ +			//don't restore previous preset after closing Preferences +			instance->saveGraphicsPreset(std::string()); +		} +	}  	LLPanelPreference::saveSettings();  }  void LLPanelPreferenceGraphics::setHardwareDefaults()  | 
