summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
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;