diff options
Diffstat (limited to 'src/executableslist.cpp')
| -rw-r--r-- | src/executableslist.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp index c4766fa8..1852b0ad 100644 --- a/src/executableslist.cpp +++ b/src/executableslist.cpp @@ -21,6 +21,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <gameinfo.h>
#include <QFileInfo>
#include <QDir>
+#include <QDebug>
#include "utility.h"
#include <algorithm>
@@ -181,18 +182,17 @@ 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
+ existingExe->m_Title = title;
+ 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;
}
- existingExe->m_Title = title;
- existingExe->m_CloseMO = closeMO;
- existingExe->m_Custom = custom;
- existingExe->m_Toolbar = toolbar;
if (pos >= 0) {
Executable temp = *existingExe;
m_Executables.erase(existingExe);
|
