summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-10-12 16:48:27 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-10-12 16:48:27 +0300
commitc00065a205fa166410cedbfe31ce74f2198911a6 (patch)
treeae54f227624328588284410c0588b2a1a5cd0823
parent791b0de2621dc5f4041db8f3908c63d30fec8c9b (diff)
MAINT-6813 Opening Preferences floater takes too much time to open on login screen on some machines
-rw-r--r--indra/newview/llpresetsmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llpresetsmanager.cpp b/indra/newview/llpresetsmanager.cpp
index 836f63bffa..f40b3e0295 100644
--- a/indra/newview/llpresetsmanager.cpp
+++ b/indra/newview/llpresetsmanager.cpp
@@ -55,6 +55,10 @@ void LLPresetsManager::triggerChangeSignal()
void LLPresetsManager::createMissingDefault()
{
+ if(gDirUtilp->getLindenUserDir().empty())
+ {
+ return;
+ }
std::string default_file = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, PRESETS_DIR, PRESETS_GRAPHIC, PRESETS_DEFAULT + ".xml");
if (!gDirUtilp->fileExists(default_file))
{