diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-19 17:59:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-19 17:59:17 +0300 |
commit | 43d590fffd0de4750e75189e5d38b37374f9c459 (patch) | |
tree | 69f3c2d626c7b60a9e7992497dd53d0b402212cc /plugins | |
parent | 96f34ff28a65710520816b32a87ab6752c32c02f (diff) |
fixes #3169 (User info: disable "Delete avatar" button if we lack of permissions)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/AVS/src/userInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/AVS/src/userInfo.cpp b/plugins/AVS/src/userInfo.cpp index ca47ea06be..2a90f55e27 100644 --- a/plugins/AVS/src/userInfo.cpp +++ b/plugins/AVS/src/userInfo.cpp @@ -120,6 +120,9 @@ public: { hHook = HookEventMessage(ME_AV_AVATARCHANGED, m_hwnd, DM_AVATARCHANGED); + if (m_hContact != 0) + btnDelete.Hide(); + LoadTransparentData(m_hwnd, GetContactThatHaveTheAvatar(m_hContact)); return true; } |