diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-30 23:14:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-30 23:14:49 +0300 |
commit | 09768fdb0f9de1927ff55292af87714eceefb562 (patch) | |
tree | a94b16d0b8750a852f37e13baaf6550158cda0b3 /src/mir_core | |
parent | d740c844823e16dde4811c7582068d18de850a55 (diff) |
fixes #661 (Scriver: Cannot send message if "Send Message" button not set in Toolbar)
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 1e4cec81b9..6022c498e9 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -1785,11 +1785,14 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh) void CCtrlTreeView::InvertCheck(HTREEITEM hItem)
{
TVITEMEX tvi;
- tvi.mask = TVIF_HANDLE | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_PARAM;
+ tvi.mask = TVIF_HANDLE | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_PARAM | TVIF_STATEEX;
tvi.hItem = hItem;
if (!GetItem(&tvi))
return;
+ if (tvi.uStateEx & TVIS_EX_DISABLED)
+ return;
+
tvi.iImage = tvi.iSelectedImage = !tvi.iImage;
SetItem(&tvi);
|