diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 38794293e2..b89e397ef7 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -861,7 +861,7 @@ void LLScriptEdCore::updateButtonBar() mLoadFromDiskBtn->setEnabled(mEditor->canLoadOrSaveToFile()); // Recompile button static LLCachedControl FSScriptEditorRecompileButton(gSavedSettings, "FSScriptEditorRecompileButton"); - mSaveBtn2->setEnabled((hasChanged() && !mScriptRemoved) || (mLSLProc && FSScriptEditorRecompileButton && !mCompiling)); + mSaveBtn2->setEnabled((hasChanged() || (mLSLProc && FSScriptEditorRecompileButton && !mCompiling && mHasScriptData)) && !mScriptRemoved); mSaveBtn2->setLabel((!mLSLProc || !FSScriptEditorRecompileButton || hasChanged()) ? LLTrans::getString("save_file_verb") : LLTrans::getString("recompile_script_verb")); // }