From c00065a205fa166410cedbfe31ce74f2198911a6 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Wed, 12 Oct 2016 16:48:27 +0300 Subject: MAINT-6813 Opening Preferences floater takes too much time to open on login screen on some machines --- indra/newview/llpresetsmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/llpresetsmanager.cpp') 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)) { -- cgit v1.2.3