summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-01-11 16:21:43 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-01-11 16:21:43 -0600
commit64a242d9220868a5b564c32f75f191efb01ad18e (patch)
tree9c616f7135e982d8d9cb0bad00f756a070dfd943 /src/profile.cpp
parentb41c99b742bbb9eee854f177a26da3218f24f2ac (diff)
Remove profile-specific executable settings when removing the executable
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index 02257de9..afe6fdc7 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -1014,7 +1014,7 @@ QList<ExecutableForcedLoadSetting> Profile::determineForcedLibraries(const QStri
return results;
}
-void Profile::saveForcedLibraries(const QString &executable, const QList<ExecutableForcedLoadSetting> &values)
+void Profile::storeForcedLibraries(const QString &executable, const QList<ExecutableForcedLoadSetting> &values)
{
QList<QVariantMap> rawSettings;
for (auto setting : values) {
@@ -1026,3 +1026,8 @@ void Profile::saveForcedLibraries(const QString &executable, const QList<Executa
}
storeSettingsByArray("forced_libraries/" + executable, rawSettings);
}
+
+void Profile::removeForcedLibraries(const QString &executable)
+{
+ m_Settings->remove("forced_libraries/" + executable);
+}