summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-05-12 20:34:05 +0200
committerTannin <devnull@localhost>2015-05-12 20:34:05 +0200
commit9ea5086c4cd1acf6f462070a5c792a252aa176dd (patch)
tree6fca89edbf75b79683260d651a318623b446fc75 /src/organizercore.cpp
parent4c1155a6ab2d81ceeab5af78e20873917f3072d0 (diff)
slight cleanup regarding steam log-in settings
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 2d1febea..ce0b8c5f 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -85,7 +85,7 @@ static void startSteam(QWidget *widget)
QSettings steamSettings("HKEY_CURRENT_USER\\Software\\Valve\\Steam", QSettings::NativeFormat);
QString exe = steamSettings.value("SteamExe", "").toString();
if (!exe.isEmpty()) {
- QString temp = QString("\"%1\"").arg(exe);
+ exe = QString("\"%1\"").arg(exe);
//See if username and password supplied. If so, pass them into steam.
QStringList args;
QString username;
@@ -97,8 +97,8 @@ static void startSteam(QWidget *widget)
args << password;
}
}
- if (!QProcess::startDetached(temp, args)) {
- reportError(QObject::tr("Failed to start \"%1\"").arg(temp));
+ if (!QProcess::startDetached(exe, args)) {
+ reportError(QObject::tr("Failed to start \"%1\"").arg(exe));
} else {
QMessageBox::information(widget, QObject::tr("Waiting"),
QObject::tr("Please press OK once you're logged into steam."));