summaryrefslogtreecommitdiff
path: root/src/modules/metacontacts/meta_edit.cpp
diff options
context:
space:
mode:
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)