Revert "explorerframe: Allow treeview expandos to open with a single click.".
authorAndrew Eikum <aeikum@codeweavers.com>
Wed, 25 Nov 2015 13:07:10 +0000 (07:07 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 25 Nov 2015 15:12:52 +0000 (00:12 +0900)
This reverts commit 5bbdcaaa16018c9e15cbaadb3a6e5954d0089cf1.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/explorerframe/nstc.c

index e8a2c54e09c924efea67739bc018bd27d0c7a34b..87a72005f4fed0fc5a799b0c2b069610bb2f1b2f 100644 (file)
@@ -686,9 +686,9 @@ static LRESULT on_nm_click(NSTC2Impl *This, NMHDR *nmhdr)
     psi = shellitem_from_treeitem(This, tvhit.hItem);
     hr = events_OnItemClick(This, psi, tvhit.flags, NSTCECT_LBUTTON);
 
-    /* The label should not be expanded unless
+    /* The expando should not be expanded unless
      * double-clicked. */
-    if(tvhit.flags == TVHT_ONITEMLABEL)
+    if(tvhit.flags == TVHT_ONITEMBUTTON)
         return TRUE;
 
     if(SUCCEEDED(hr))