From 9bda41fad17839d2ff5dda95b263c64532771277 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Feb 2022 18:53:03 +0300 Subject: fixes #3040 ([Autoexec system]: cannot delete keys by mask) --- src/mir_app/src/db_ini.cpp | 12 ++++++++++-- 1 file 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 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': -- cgit v1.2.3