diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-09 17:40:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-09 17:40:09 +0300 |
commit | a43d5bcb1e0bdafb0193662168976aac989ed922 (patch) | |
tree | c4f154f05f36626678efc64ae7a1139b30b5f4fe /plugins/DbEditorPP/src/deletemodule.cpp | |
parent | 760867149a99443036f53c73190d53bd87039def (diff) |
db_is_module_empty & db_copy_module - new database helpers
Diffstat (limited to 'plugins/DbEditorPP/src/deletemodule.cpp')
-rw-r--r-- | plugins/DbEditorPP/src/deletemodule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/DbEditorPP/src/deletemodule.cpp b/plugins/DbEditorPP/src/deletemodule.cpp index 61d06228d1..9a14210a80 100644 --- a/plugins/DbEditorPP/src/deletemodule.cpp +++ b/plugins/DbEditorPP/src/deletemodule.cpp @@ -5,7 +5,7 @@ static HWND hwnd2Delete = nullptr; int deleteModule(HWND hwndParent, MCONTACT hContact, const char *module, int confirm)
{
- if (!module || IsModuleEmpty(hContact, module))
+ if (!module || db_is_module_empty(hContact, module))
return 0;
if (confirm && g_plugin.bWarnOnDelete) {
@@ -40,7 +40,7 @@ void __cdecl PopulateModuleDropListThreadFunc(void *param) while (module && working) {
moduleEmpty = 1;
// check the null
- if (!IsModuleEmpty(NULL, module->name)) {
+ if (!db_is_module_empty(NULL, module->name)) {
SendDlgItemMessageA(hwnd, IDC_CONTACTS, CB_ADDSTRING, 0, (LPARAM)module->name);
moduleEmpty = 0;
module = module->next;
@@ -48,7 +48,7 @@ void __cdecl PopulateModuleDropListThreadFunc(void *param) }
for (auto &hContact : Contacts()) {
- if (!IsModuleEmpty(hContact, module->name)) {
+ if (!db_is_module_empty(hContact, module->name)) {
SendDlgItemMessageA(hwnd, IDC_CONTACTS, CB_ADDSTRING, 0, (LPARAM)module->name);
moduleEmpty = 0;
break;
|