diff options
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/clui.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp index 14b0d3ecb3..4896524ce4 100644 --- a/src/mir_app/src/clui.cpp +++ b/src/mir_app/src/clui.cpp @@ -211,17 +211,14 @@ static INT_PTR MenuItem_DeleteContact(WPARAM hContact, LPARAM lParam) return 0;
int options = 0;
- if (!dlg.bDelContact)
- Contact::Hide(hContact);
- else
+ if (dlg.bDelContact)
options |= CDF_DEL_CONTACT;
-
- // Check if protocol uses server side lists
if (dlg.bDelHistory)
options |= CDF_DEL_HISTORY;
if (dlg.bForEveryone)
options |= CDF_FOR_EVERYONE;
+ // Check if protocol uses server side lists
int status = Proto_GetStatus(dlg.szProto);
if (status == ID_STATUS_OFFLINE || IsStatusConnecting(status)) {
// Set a flag so we remember to delete the contact when the protocol goes online the next time
|