From a43d5bcb1e0bdafb0193662168976aac989ed922 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 9 Feb 2022 17:40:09 +0300 Subject: db_is_module_empty & db_copy_module - new database helpers --- plugins/DbEditorPP/src/deletemodule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/DbEditorPP/src/deletemodule.cpp') 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; -- cgit v1.2.3