summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Clist_modern/src/modern_clcutils.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clcutils.cpp b/plugins/Clist_modern/src/modern_clcutils.cpp
index 2aaabf8900..0fe627f991 100644
--- a/plugins/Clist_modern/src/modern_clcutils.cpp
+++ b/plugins/Clist_modern/src/modern_clcutils.cpp
@@ -407,10 +407,13 @@ int GetDropTargetInformation(HWND hwnd, ClcData *dat, POINT pt)
}
dat->selection = hit;
- if (!mir_strcmp(contact->pce->szProto, META_PROTO))
- return DROPTARGET_ONMETACONTACT;
+ if (contact->pce)
+ if (!mir_strcmp(contact->pce->szProto, META_PROTO))
+ return DROPTARGET_ONMETACONTACT;
+
if (contact->iSubNumber)
return DROPTARGET_ONSUBCONTACT;
+
return DROPTARGET_ONCONTACT;
}