summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-05-02 15:21:17 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-05-02 15:21:17 +0300
commit5502d680c3b327630d5d8b5b1b1a37893b9a4a7d (patch)
tree219dd69d9d1ec858e20ed1a5136387566f4c536e /src
parenta7877921d111178ed92ccda2e0ca53744646a2bf (diff)
fixes #4926 (strange behavior of contact's popup menu in the embedded clists)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clc.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp
index 788931360d..c990c7a81b 100644
--- a/src/mir_app/src/clc.cpp
+++ b/src/mir_app/src/clc.cpp
@@ -1158,16 +1158,17 @@ LBL_MoveSelection:
break;
case WM_CONTEXTMENU:
- Clist_EndRename(dat, 1);
- Clist_HideInfoTip(dat);
- KillTimer(hwnd, TIMERID_RENAME);
- KillTimer(hwnd, TIMERID_INFOTIP);
- if (GetFocus() != hwnd)
- SetFocus(hwnd);
- dat->iHotTrack = -1;
- if (!dat->bFilterSearch)
- dat->szQuickSearch[0] = 0;
- {
+ if (hwnd == g_clistApi.hwndContactTree) {
+ Clist_EndRename(dat, 1);
+ Clist_HideInfoTip(dat);
+ KillTimer(hwnd, TIMERID_RENAME);
+ KillTimer(hwnd, TIMERID_INFOTIP);
+ if (GetFocus() != hwnd)
+ SetFocus(hwnd);
+ dat->iHotTrack = -1;
+ if (!dat->bFilterSearch)
+ dat->szQuickSearch[0] = 0;
+
POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
if (pt.x == -1 && pt.y == -1) {
dat->selection = g_clistApi.pfnGetRowByIndex(dat, dat->selection, &contact, nullptr);