diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-28 13:31:18 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-28 13:31:18 +0300 |
commit | 7602cfa123b322e836b482f0c830b145f029cb41 (patch) | |
tree | 95cfb856c27de69ce71250a563d0a163e72409ef /src/mir_app | |
parent | 9a63063543f450472a564be2df56f7c42f6b3327 (diff) |
code cleaning
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
|