diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-10 12:54:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-10 12:54:20 +0300 |
commit | ef0ba268b340eaf1217a96d763342c25668588b4 (patch) | |
tree | 17396375e213043c2ce1c59b50b7f30488dcb83d /protocols/Non-IM Contact/src | |
parent | 33733576589076f080ddfa000b899843016a2597 (diff) |
Protocols: preventing recursive contact deletion
Diffstat (limited to 'protocols/Non-IM Contact/src')
-rw-r--r-- | protocols/Non-IM Contact/src/dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Non-IM Contact/src/dialog.cpp b/protocols/Non-IM Contact/src/dialog.cpp index 1676198969..ab1d7e4dcd 100644 --- a/protocols/Non-IM Contact/src/dialog.cpp +++ b/protocols/Non-IM Contact/src/dialog.cpp @@ -290,7 +290,7 @@ INT_PTR addContact(WPARAM, LPARAM) g_plugin.setWString(hContact, "Nick", TranslateT("New Non-IM Contact")); DoPropertySheet(hContact); if (db_get_static(hContact, MODNAME, "Name", tmp, _countof(tmp))) - db_delete_contact(hContact); + db_delete_contact(hContact, true); replaceAllStrings(hContact); return 0; } @@ -307,7 +307,7 @@ INT_PTR editContact(WPARAM wParam, LPARAM) } DoPropertySheet(hContact); if (db_get_static(hContact, MODNAME, "Name", tmp, _countof(tmp))) - db_delete_contact(hContact); + db_delete_contact(hContact, true); replaceAllStrings(hContact); return 0; } |