From 2948d9339597f89a03d3f91a71b9732c3799b428 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Aug 2022 19:50:49 +0300 Subject: fixes #3159 (various quirks in the View/Change my details window) --- plugins/AVS/src/userInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/userInfo.cpp b/plugins/AVS/src/userInfo.cpp index 919bf96847..ca47ea06be 100644 --- a/plugins/AVS/src/userInfo.cpp +++ b/plugins/AVS/src/userInfo.cpp @@ -466,6 +466,8 @@ int OnDetailsInit(WPARAM wParam, LPARAM hContact) { USERINFOPAGE uip = {}; uip.szTitle.a = LPGEN("Avatar"); + uip.flags = ODPF_ICON; + uip.dwInitParam = (LPARAM)g_plugin.getIconHandle(IDI_AVATAR); if (hContact == NULL) { // User dialog @@ -476,10 +478,8 @@ int OnDetailsInit(WPARAM wParam, LPARAM hContact) char *szProto = Proto_GetBaseAccountName(hContact); if (szProto == nullptr || g_plugin.getByte(szProto, 1)) { // Contact dialog - uip.flags = ODPF_ICON; uip.position = -2000000000; uip.pDialog = new AvatarUserInfoDlg(); - uip.dwInitParam = (LPARAM)g_plugin.getIconHandle(IDI_AVATAR); g_plugin.addUserInfo(wParam, &uip); } } -- cgit v1.2.3