From 2a22461f14e0b52a9044917581a666318a197113 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 31 Aug 2015 21:24:04 +0200 Subject: bugfix: auto-discovered executables couldn't be customized --- src/executableslist.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/executableslist.cpp') 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; -- cgit v1.3.1