summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
authorTom Tanner <thosrtanner2@users.sourceforge.net>2015-05-09 11:41:39 +0100
committerTom Tanner <thosrtanner2@users.sourceforge.net>2015-05-09 11:41:39 +0100
commit1403d51a82fa4c7548e21d7411486244881bc8d8 (patch)
tree84846af5f9a1cd1e841b6004bdd8cff8879b01e7 /src/executableslist.cpp
parent89eabf3c4df39f918fae9414d26a4cf5459f2047 (diff)
Fix mod organiser not picking up stuff from a blank profile
Diffstat (limited to 'src/executableslist.cpp')
-rw-r--r--src/executableslist.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp
index 35bb30ae..c4766fa8 100644
--- a/src/executableslist.cpp
+++ b/src/executableslist.cpp
@@ -181,12 +181,16 @@ void ExecutablesList::addExecutable(const QString &title, const QString &executa
auto existingExe = findExe(title);
if (existingExe != m_Executables.end()) {
+ //A note: If this isn't customised, we want to leave
+ //the directory and so on WELL alone
+ if (custom) {
+ existingExe->m_BinaryInfo = file;
+ existingExe->m_Arguments = arguments;
+ existingExe->m_WorkingDirectory = workingDirectory;
+ existingExe->m_SteamAppID = steamAppID;
+ }
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_Toolbar = toolbar;
if (pos >= 0) {