summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-04-09 15:37:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-04-09 15:37:56 +0300
commit2372899bd100889437edf20d10ca91cfb97db7e3 (patch)
tree3132f6a0a0692e1002f50dd1ae9547057f6c5c68 /plugins/Clist_modern
parentaf44d1a42ade597fe5a716e4c1e35964f9d4b843 (diff)
fixes #4323 (Clist_modern: плагин не позволяет перетащить файл на контакт, который не в сети)
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp
index b57b583774..7dba34ffba 100644
--- a/plugins/Clist_modern/src/modern_clc.cpp
+++ b/plugins/Clist_modern/src/modern_clc.cpp
@@ -1333,7 +1333,6 @@ static LRESULT clcOnIntmIconChanged(ClcData *dat, HWND hwnd, UINT, WPARAM wParam
int contacticon = Clist_GetContactIcon(wParam);
MCONTACT hSelItem = 0;
- ClcGroup *selgroup;
ClcContact *selcontact = nullptr;
char *szProto = Proto_GetBaseAccountName(wParam);
@@ -1401,6 +1400,7 @@ static LRESULT clcOnIntmIconChanged(ClcData *dat, HWND hwnd, UINT, WPARAM wParam
}
if (hSelItem) {
+ ClcGroup *selgroup;
if (Clist_FindItem(hwnd, dat, hSelItem, &selcontact, &selgroup))
dat->selection = g_clistApi.pfnGetRowsPriorTo(&dat->list, selgroup, selgroup->cl.indexOf(selcontact));
else