From 899918006f3a56846e69b9a722c2462bc877e613 Mon Sep 17 00:00:00 2001 From: Wayne Chen Date: Fri, 14 Dec 2018 17:12:27 -0800 Subject: [PATCH] fixing for autotester --- interface/src/Application.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index d9c3f1478c..4b0724a556 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -5261,7 +5261,12 @@ void Application::resumeAfterLoginDialogActionTaken() { nodeList->getDomainHandler().resetting(); if (!accountManager->isLoggedIn()) { - addressManager->goToEntry(); + if (arguments().contains("--url")) { + auto reply = SandboxUtils::getStatus(); + connect(reply, &QNetworkReply::finished, this, [this, reply] { handleSandboxStatus(reply); }); + } else { + addressManager->goToEntry(); + } } else { QVariant testProperty = property(hifi::properties::TEST); if (testProperty.isValid()) { @@ -5274,7 +5279,8 @@ void Application::resumeAfterLoginDialogActionTaken() { connect(reply, &QNetworkReply::finished, this, [this, reply] { handleSandboxStatus(reply); }); } } else { - addressManager->loadSettings(); + auto reply = SandboxUtils::getStatus(); + connect(reply, &QNetworkReply::finished, this, [this, reply] { handleSandboxStatus(reply); }); } }