diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-13 18:53:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-13 18:53:03 +0300 |
commit | 9bda41fad17839d2ff5dda95b263c64532771277 (patch) | |
tree | c18788a117eb226b6ad4f573553811856a9b1ec4 /src/mir_app | |
parent | 90239852e737675444727f45c2b6eb0ced31f989 (diff) |
fixes #3040 ([Autoexec system]: cannot delete keys by mask)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/db_ini.cpp | 12 |
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, ¶m);
+
+ for (auto &it : arSettings) {
+ db_unset(0, szSection, it);
+ mir_free(it);
+ }
+ }
db_unset(0, szSection, szName);
break;
case 'e':
|