summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-03-27 16:33:32 +0100
committerTannin <devnull@localhost>2015-03-27 16:33:32 +0100
commit41616965270180f42ae4c835042fc6159bf68841 (patch)
tree26989b9611db55c5db36bf346ec7416553216354 /src/executableslist.cpp
parent73eea93abb1fdbd1b2fef494e5bd10a5c8889b84 (diff)
bugfix: MO didn't use all parameters of preconfigured executables
Diffstat (limited to 'src/executableslist.cpp')
-rw-r--r--src/executableslist.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp
index 35bb30ae..9f0cd315 100644
--- a/src/executableslist.cpp
+++ b/src/executableslist.cpp
@@ -182,13 +182,16 @@ void ExecutablesList::addExecutable(const QString &title, const QString &executa
if (existingExe != m_Executables.end()) {
existingExe->m_Title = title;
- existingExe->m_CloseMO = closeMO;
- existingExe->m_BinaryInfo = file;
- existingExe->m_Arguments = arguments;
- existingExe->m_WorkingDirectory = workingDirectory;
- existingExe->m_SteamAppID = steamAppID;
existingExe->m_Custom = custom;
+ existingExe->m_CloseMO = closeMO;
existingExe->m_Toolbar = toolbar;
+ if (custom) {
+ // for pre-configured executables don't overwrite settings we didn't store
+ existingExe->m_BinaryInfo = file;
+ existingExe->m_Arguments = arguments;
+ existingExe->m_WorkingDirectory = workingDirectory;
+ existingExe->m_SteamAppID = steamAppID;
+ }
if (pos >= 0) {
Executable temp = *existingExe;
m_Executables.erase(existingExe);