summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-08-31 21:24:04 +0200
committerTannin <devnull@localhost>2015-08-31 21:24:04 +0200
commit2a22461f14e0b52a9044917581a666318a197113 (patch)
tree49b9287f7f49606e7a957bfa23a8fb55e8906880 /src/executableslist.cpp
parent83edfe0c961525fca3297b6862d5040b3da73d81 (diff)
bugfix: auto-discovered executables couldn't be customized
Diffstat (limited to 'src/executableslist.cpp')
-rw-r--r--src/executableslist.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp
index 7002ccc4..12e3d7aa 100644
--- a/src/executableslist.cpp
+++ b/src/executableslist.cpp
@@ -148,8 +148,11 @@ void ExecutablesList::updateExecutable(const QString &title,
existingExe->m_Flags &= ~mask;
existingExe->m_Flags |= flags;
// for pre-configured executables don't overwrite settings we didn't store
- if (existingExe->isCustom()) {
- existingExe->m_BinaryInfo = file;
+ if (flags & Executable::CustomExecutable) {
+ if (file.exists()) {
+ // don't overwrite a valid binary with an invalid one
+ existingExe->m_BinaryInfo = file;
+ }
existingExe->m_Arguments = arguments;
existingExe->m_WorkingDirectory = workingDirectory;
existingExe->m_SteamAppID = steamAppID;