diff options
| author | Tannin <devnull@localhost> | 2014-12-14 16:32:30 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-12-14 16:32:30 +0100 |
| commit | 003cb6dec5ff3b6b25cb067eaca055d357a3db6c (patch) | |
| tree | 6439fe51be79f411cb1525ce6747549be45fad8c /src/mainwindow.cpp | |
| parent | 7fb7207ac79537bb84a1d71eefa9366dea6b0688 (diff) | |
if a shortcut-started application is the same binary as a configured one, the corresponding steam app id is used
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8f23c0fa..7d602d9e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5409,6 +5409,12 @@ HANDLE MainWindow::startApplication(const QString &executable, const QStringList if (cwd.length() == 0) { currentDirectory = binary.absolutePath(); } + try { + const Executable &exe = m_ExecutablesList.findByBinary(binary); + steamAppID = exe.m_SteamAppID; + } catch (const std::runtime_error&) { + // nop + } } else { // only a file name, search executables list try { |
