History

fix how env variable is accessed

Seth Alves committed 10 years ago

Commit bda87611 parent f42e9681 file · +3 −4Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+3−4
@@ -1122,10 +1122,9 @@ void Application::aboutToQuit() { · 1121 unmodified lines
11221122 }
11231123
11241124 void Application::cleanupBeforeQuit() {
1125− // add a logline indicating if QTWEBENGINE_REMOTE_DEBUGGING is set or not.
1126− QProcessEnvironment env;
1127− bool webengineRemoteDebuggingSet = env.keys().contains("QTWEBENGINE_REMOTE_DEBUGGING");
1128− qCDebug(interfaceapp) << "QTWEBENGINE_REMOTE_DEBUGGING =" << webengineRemoteDebuggingSet;
1125+ // add a logline indicating if QTWEBENGINE_REMOTE_DEBUGGING is set or not
1126+ QString webengineRemoteDebugging = QProcessEnvironment::systemEnvironment().value("QTWEBENGINE_REMOTE_DEBUGGING", "false");
1127+ qCDebug(interfaceapp) << "QTWEBENGINE_REMOTE_DEBUGGING =" << webengineRemoteDebugging;
11291128
11301129 // Stop third party processes so that they're not left running in the event of a subsequent shutdown crash.
11311130 #ifdef HAVE_DDE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t