fix unix warning

This commit is contained in:
Brad Hefta-Gaub 2016-10-17 13:12:24 -07:00
parent c575e19b81
commit dcab5a5dbc

View file

@ -580,16 +580,13 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
bool wantsSandboxRunning = shouldRunServer(); bool wantsSandboxRunning = shouldRunServer();
static bool determinedSandboxState = false; static bool determinedSandboxState = false;
static bool sandboxRunning = false;
SandboxUtils sandboxUtils; SandboxUtils sandboxUtils;
sandboxUtils.ifLocalSandboxRunningElse([&]() { sandboxUtils.ifLocalSandboxRunningElse([&]() {
qCDebug(interfaceapp) << "Home sandbox appears to be running....."; qCDebug(interfaceapp) << "Home sandbox appears to be running.....";
determinedSandboxState = true; determinedSandboxState = true;
sandboxRunning = true;
}, [&, wantsSandboxRunning]() { }, [&, wantsSandboxRunning]() {
qCDebug(interfaceapp) << "Home sandbox does not appear to be running...."; qCDebug(interfaceapp) << "Home sandbox does not appear to be running....";
determinedSandboxState = true; determinedSandboxState = true;
sandboxRunning = false;
if (wantsSandboxRunning) { if (wantsSandboxRunning) {
QString contentPath = getRunServerPath(); QString contentPath = getRunServerPath();
SandboxUtils::runLocalSandbox(contentPath, true, RUNNING_MARKER_FILENAME); SandboxUtils::runLocalSandbox(contentPath, true, RUNNING_MARKER_FILENAME);