fix how env variable is accessed

This commit is contained in:
Seth Alves 2016-04-05 14:30:41 -07:00
parent f42e968dda
commit bda8761e00

View file

@ -1122,10 +1122,9 @@ void Application::aboutToQuit() {
} }
void Application::cleanupBeforeQuit() { void Application::cleanupBeforeQuit() {
// add a logline indicating if QTWEBENGINE_REMOTE_DEBUGGING is set or not. // add a logline indicating if QTWEBENGINE_REMOTE_DEBUGGING is set or not
QProcessEnvironment env; QString webengineRemoteDebugging = QProcessEnvironment::systemEnvironment().value("QTWEBENGINE_REMOTE_DEBUGGING", "false");
bool webengineRemoteDebuggingSet = env.keys().contains("QTWEBENGINE_REMOTE_DEBUGGING"); qCDebug(interfaceapp) << "QTWEBENGINE_REMOTE_DEBUGGING =" << webengineRemoteDebugging;
qCDebug(interfaceapp) << "QTWEBENGINE_REMOTE_DEBUGGING =" << webengineRemoteDebuggingSet;
// Stop third party processes so that they're not left running in the event of a subsequent shutdown crash. // Stop third party processes so that they're not left running in the event of a subsequent shutdown crash.
#ifdef HAVE_DDE #ifdef HAVE_DDE