summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/db_ini.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mir_app/src/db_ini.cpp b/src/mir_app/src/db_ini.cpp
index 73ca514756..f977cd289d 100644
--- a/src/mir_app/src/db_ini.cpp
+++ b/src/mir_app/src/db_ini.cpp
@@ -421,8 +421,16 @@ LBL_NewLine:
case 'l':
case 'L':
case '-':
- if (szValue[1] == '*')
- db_delete_module(0, szSection);
+ if (szValue[1] == '*') {
+ LIST<char> arSettings(1);
+ ESFDParam param = { &arSettings, szName };
+ db_enum_settings(0, EnumSettingsForDeletion, szSection, &param);
+
+ for (auto &it : arSettings) {
+ db_unset(0, szSection, it);
+ mir_free(it);
+ }
+ }
db_unset(0, szSection, szName);
break;
case 'e':