diff options
| author | Tom Tanner <thosrtanner2@users.sourceforge.net> | 2015-05-09 18:10:38 +0100 |
|---|---|---|
| committer | Tom Tanner <thosrtanner2@users.sourceforge.net> | 2015-05-09 18:10:38 +0100 |
| commit | ffb470a38035b2eb2cf63909572e8d56082dc83b (patch) | |
| tree | a52eadbd4c5a68a553eb0fa998e3cb2750d738fb /src/organizercore.cpp | |
| parent | 1403d51a82fa4c7548e21d7411486244881bc8d8 (diff) | |
Add in a tab to allow saving of steam username and password.
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 c2eaeae7..30d38be3 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"),
|
