summaryrefslogtreecommitdiff
path: root/src/modules/metacontacts/meta_edit.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-23 11:39:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-23 11:39:36 +0000
commit9393a87b150f75ae5bf018790a2cd5096600d90e (patch)
treeaea2ee14e1c0498cb9f36f5220381ea40abfb1cf /src/modules/metacontacts/meta_edit.cpp
parentdd13e3c81400c3607a4f63a501b53b46052035ab (diff)
fix for the metacontact's editor
git-svn-id: http://svn.miranda-ng.org/main/trunk@13057 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_edit.cpp')
-rw-r--r--src/modules/metacontacts/meta_edit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/metacontacts/meta_edit.cpp b/src/modules/metacontacts/meta_edit.cpp
index 7938b398be..fba8032489 100644
--- a/src/modules/metacontacts/meta_edit.cpp
+++ b/src/modules/metacontacts/meta_edit.cpp
@@ -130,7 +130,8 @@ static void ApplyChanges()
{
// remove removed contacts
for (int i = 0; i < g_data.num_deleted; i++) {
- Meta_Delete(g_data.hDeletedContacts[i], 0);
+ if (Meta_Delete(g_data.hDeletedContacts[i], 0) != 0) // error, delete anyway
+ Meta_RemoveContactNumber(g_data.cc, Meta_GetContactNumber(g_data.cc, g_data.hDeletedContacts[i]), true);
if (g_data.hDeletedContacts[i] == g_data.hDefaultContact)
g_data.hDefaultContact = 0;
if (g_data.hDeletedContacts[i] == g_data.hOfflineContact)