diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/installer/environmentvariablesoperation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/installer/environmentvariablesoperation.cpp b/src/libs/installer/environmentvariablesoperation.cpp index 36b5d6273..4c423d94f 100644 --- a/src/libs/installer/environmentvariablesoperation.cpp +++ b/src/libs/installer/environmentvariablesoperation.cpp @@ -157,9 +157,7 @@ bool EnvironmentVariableOperation::performOperation() Error err = NoError; - err = isSystemWide - ? writeSetting<QSettingsWrapper>(regPath, name, value, &errorString, &oldvalue) - : writeSetting<QSettingsWrapper>(regPath, name, value, &errorString, &oldvalue); + err = writeSetting<QSettingsWrapper>(regPath, name, value, &errorString, &oldvalue); if (err != NoError) { setError(err); setErrorString(errorString); @@ -212,9 +210,7 @@ bool EnvironmentVariableOperation::undoOperation() QString errorString; - const Error err = isSystemWide - ? undoSetting<QSettingsWrapper>(regPath, name, value, oldvalue, &errorString) - : undoSetting<QSettingsWrapper>(regPath, name, value, oldvalue, &errorString); + const Error err = undoSetting<QSettingsWrapper>(regPath, name, value, oldvalue, &errorString); if (err != NoError) { setError(err); |