summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-08-09 15:16:57 +0200
committerTannin <devnull@localhost>2015-08-09 15:16:57 +0200
commita7d6eb75c20d185c45a0bff309c68e1efaae990e (patch)
tree93414a893ec3b1c6effe162e05c8a4418ff5011d /src/organizercore.cpp
parent6f09cf2205fdf9ce87b6219883585508b3cf2667 (diff)
reverted most changes of changeset 626da419828a as I don't agree with them
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 3d996b01..46065937 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -229,7 +229,7 @@ QSettings::Status OrganizerCore::storeSettings(const QString &fileName)
settings.setValue("binary", item.m_BinaryInfo.absoluteFilePath());
settings.setValue("arguments", item.m_Arguments);
settings.setValue("workingDirectory", item.m_WorkingDirectory);
- settings.setValue("closeOnStart", item.closeOnExecution());
+ settings.setValue("closeOnStart", item.m_CloseMO == ExecutableInfo::CloseMOStyle::DEFAULT_CLOSE);
settings.setValue("steamAppID", item.m_SteamAppID);
}
}
@@ -327,22 +327,22 @@ void OrganizerCore::updateExecutablesList(QSettings &settings)
int numCustomExecutables = settings.beginReadArray("customExecutables");
for (int i = 0; i < numCustomExecutables; ++i) {
settings.setArrayIndex(i);
+ ExecutableInfo::CloseMOStyle closeMO =
+ settings.value("closeOnStart").toBool() ? ExecutableInfo::CloseMOStyle::DEFAULT_CLOSE
+ : ExecutableInfo::CloseMOStyle::DEFAULT_STAY;
- Executable::OtherFlags other;
- if (settings.value("custom", true).toBool()) other |= Executable::CustomExecutable;
- if (settings.value("toolbar", false).toBool()) other |= Executable::ShowInToolbar;
-
- Executable::SettableFlags settable;
- if (settings.value("closeOnStart", false).toBool()) settable |= Executable::CloseOnExecution;
- if (settings.value("ownicon", false).toBool()) settable |= Executable::UseApplicationIcon;
+ Executable::Flags flags;
+ if (settings.value("custom", true).toBool()) flags |= Executable::CustomExecutable;
+ if (settings.value("toolbar", false).toBool()) flags |= Executable::ShowInToolbar;
+ if (settings.value("ownicon", false).toBool()) flags |= Executable::UseApplicationIcon;
m_ExecutablesList.addExecutable(settings.value("title").toString(),
settings.value("binary").toString(),
settings.value("arguments").toString(),
settings.value("workingDirectory", "").toString(),
+ closeMO,
settings.value("steamAppID", "").toString(),
- settable,
- other);
+ flags);
}
settings.endArray();