diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-08 15:34:12 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-08 19:47:37 +0300 | 
| commit | 2efd6727c1c492a178eff42484c35be7c08e5857 (patch) | |
| tree | d8a48ad94ae233499bddd92970e68b95b306f157 | |
| parent | 314d08681415d8474bf4885c80df0a1abafbe78b (diff) | |
SL-17546 Fix 'release' configuration build tests
| -rw-r--r-- | indra/newview/llappviewer.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llappviewer.h | 1 | ||||
| -rw-r--r-- | indra/newview/lllogininstance.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/tests/lllogininstance_test.cpp | 1 | 
4 files changed, 8 insertions, 3 deletions
| diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 089e45411c..f54093d9d0 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3147,6 +3147,11 @@ bool LLAppViewer::isUpdaterMissing()      return mUpdaterNotFound;  } +bool LLAppViewer::waitForUpdater() +{ +    return !gSavedSettings.getBOOL("CmdLineSkipUpdater") && !mUpdaterNotFound && !gNonInteractive; +} +  void LLAppViewer::writeDebugInfo(bool isStatic)  {  #if LL_WINDOWS && LL_BUGSPLAT diff --git a/indra/newview/llappviewer.h b/indra/newview/llappviewer.h index 68c04d450b..7ab21f35cd 100644 --- a/indra/newview/llappviewer.h +++ b/indra/newview/llappviewer.h @@ -106,6 +106,7 @@ public:  	bool logoutRequestSent() { return mLogoutRequestSent; }  	bool isSecondInstance() { return mSecondInstance; }      bool isUpdaterMissing(); // In use by tests +    bool waitForUpdater();  	void writeDebugInfo(bool isStatic=true); diff --git a/indra/newview/lllogininstance.cpp b/indra/newview/lllogininstance.cpp index e2e5e161c2..82ecfbd4dc 100644 --- a/indra/newview/lllogininstance.cpp +++ b/indra/newview/lllogininstance.cpp @@ -280,9 +280,7 @@ void LLLoginInstance::constructAuthParams(LLPointer<LLCredential> user_credentia  	mRequestData["options"] = requested_options;  	mRequestData["http_params"] = http_params;  #if LL_RELEASE_FOR_DOWNLOAD -    mRequestData["wait_for_updater"] = !gSavedSettings.getBOOL("CmdLineSkipUpdater") -                                       && !LLAppViewer::instance()->isUpdaterMissing() -                                       && !gNonInteractive; +    mRequestData["wait_for_updater"] = LLAppViewer::instance()->waitForUpdater();  #else      mRequestData["wait_for_updater"] = false;  #endif diff --git a/indra/newview/tests/lllogininstance_test.cpp b/indra/newview/tests/lllogininstance_test.cpp index a52c3dcef9..696fe3536c 100644 --- a/indra/newview/tests/lllogininstance_test.cpp +++ b/indra/newview/tests/lllogininstance_test.cpp @@ -223,6 +223,7 @@ bool llHashedUniqueID(unsigned char* id)  #include "../llappviewer.h"  void LLAppViewer::forceQuit(void) {}  bool LLAppViewer::isUpdaterMissing() { return true; } +bool LLAppViewer::waitForUpdater() { return false; }  LLAppViewer * LLAppViewer::sInstance = 0;  //----------------------------------------------------------------------------- | 
