diff options
| author | Tannin <devnull@localhost> | 2015-05-12 19:00:41 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-12 19:00:41 +0200 |
| commit | 4c1155a6ab2d81ceeab5af78e20873917f3072d0 (patch) | |
| tree | ac93d8d32ff4d50c96eb97e73b44a445de0270f5 /src/organizercore.cpp | |
| parent | 90365041f463f6c062b154e94fedbf75f96fb880 (diff) | |
| parent | cd68c9d53c75761a3766f93d4c6bbe3015cb89ce (diff) | |
Merge
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 9e6309cd..2d1febea 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -86,7 +86,18 @@ static void startSteam(QWidget *widget) QString exe = steamSettings.value("SteamExe", "").toString();
if (!exe.isEmpty()) {
QString temp = QString("\"%1\"").arg(exe);
- if (!QProcess::startDetached(temp)) {
+ //See if username and password supplied. If so, pass them into steam.
+ QStringList args;
+ QString username;
+ QString password;
+ if (Settings::instance().getSteamLogin(username, password)) {
+ args << "-login";
+ args << username;
+ if (password != "") {
+ args << password;
+ }
+ }
+ if (!QProcess::startDetached(temp, args)) {
reportError(QObject::tr("Failed to start \"%1\"").arg(temp));
} else {
QMessageBox::information(widget, QObject::tr("Waiting"),
|
