summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-08-31 21:26:47 +0200
committerTannin <devnull@localhost>2015-08-31 21:26:47 +0200
commit3c7ab3b668f0246b4cb966d225b407cfa08f9dfa (patch)
tree9812c432943fd6ad8531ef8a9f25d47596c5b0e2 /src/executableslist.cpp
parent0c3c822d77425da812d8708d68466ac05bb198db (diff)
parentd85019f4b182461dc09d8b2950aa43262219a021 (diff)
Merge
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;