summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-12-14 16:32:30 +0100
committerTannin <devnull@localhost>2014-12-14 16:32:30 +0100
commit003cb6dec5ff3b6b25cb067eaca055d357a3db6c (patch)
tree6439fe51be79f411cb1525ce6747549be45fad8c /src/executableslist.cpp
parent7fb7207ac79537bb84a1d71eefa9366dea6b0688 (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/executableslist.cpp')
-rw-r--r--src/executableslist.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp
index 210737a0..cc942012 100644
--- a/src/executableslist.cpp
+++ b/src/executableslist.cpp
@@ -113,6 +113,17 @@ Executable &ExecutablesList::find(const QString &title)
}
+Executable &ExecutablesList::findByBinary(const QFileInfo &info)
+{
+ for (std::vector<Executable>::iterator iter = m_Executables.begin(); iter != m_Executables.end(); ++iter) {
+ if (info == iter->m_BinaryInfo) {
+ return *iter;
+ }
+ }
+ throw std::runtime_error("invalid info");
+}
+
+
std::vector<Executable>::iterator ExecutablesList::findExe(const QString &title)
{
for (std::vector<Executable>::iterator iter = m_Executables.begin(); iter != m_Executables.end(); ++iter) {