diff options
author | Anchor Linden <anchor@lindenlab.com> | 2018-10-11 10:54:16 -0700 |
---|---|---|
committer | Anchor Linden <anchor@lindenlab.com> | 2018-10-11 10:54:16 -0700 |
commit | 076719013ec2dab7bf8fd1f4d1f953ab73d594e9 (patch) | |
tree | 58e7cd0674a1286544f883257cc2f43969ea201f /indra/newview/llpresetsmanager.cpp | |
parent | e5aeaa659a453674ef898cdd2ad6183d5eb77e41 (diff) | |
parent | 58aef8beaf79dc83546a7b080014ca5030733ac8 (diff) |
Merge
Diffstat (limited to 'indra/newview/llpresetsmanager.cpp')
-rw-r--r-- | indra/newview/llpresetsmanager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llpresetsmanager.cpp b/indra/newview/llpresetsmanager.cpp index 96818d5a21..df93572508 100644 --- a/indra/newview/llpresetsmanager.cpp +++ b/indra/newview/llpresetsmanager.cpp @@ -138,6 +138,11 @@ bool LLPresetsManager::savePreset(const std::string& subdirectory, std::string n { name = PRESETS_DEFAULT; } + if (!createDefault && name == PRESETS_DEFAULT) + { + LL_WARNS() << "Should not overwrite default" << LL_ENDL; + return false; + } bool saved = false; std::vector<std::string> name_list; |