From bda8761e00bfede783f80c5171e700db5ff5d68e Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 5 Apr 2016 14:30:41 -0700 Subject: [PATCH] fix how env variable is accessed --- interface/src/Application.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index b50fe1292b..b4bc5fa665 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1122,10 +1122,9 @@ void Application::aboutToQuit() { } void Application::cleanupBeforeQuit() { - // add a logline indicating if QTWEBENGINE_REMOTE_DEBUGGING is set or not. - QProcessEnvironment env; - bool webengineRemoteDebuggingSet = env.keys().contains("QTWEBENGINE_REMOTE_DEBUGGING"); - qCDebug(interfaceapp) << "QTWEBENGINE_REMOTE_DEBUGGING =" << webengineRemoteDebuggingSet; + // add a logline indicating if QTWEBENGINE_REMOTE_DEBUGGING is set or not + QString webengineRemoteDebugging = QProcessEnvironment::systemEnvironment().value("QTWEBENGINE_REMOTE_DEBUGGING", "false"); + qCDebug(interfaceapp) << "QTWEBENGINE_REMOTE_DEBUGGING =" << webengineRemoteDebugging; // Stop third party processes so that they're not left running in the event of a subsequent shutdown crash. #ifdef HAVE_DDE