From 1979d2f1425896e94dcd77b2e879fce32a5951e6 Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Thu, 28 Jun 2018 19:07:31 +0200 Subject: [PATCH] IconView: always raise Click event when clicked. [GB.GUI.BASE] * BUG: IconView: Always raise Click event when clicked and not only when selection changes. See Gambas Bug #1358 --- comp/src/gb.gui.base/.src/IconView/IconView.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comp/src/gb.gui.base/.src/IconView/IconView.class b/comp/src/gb.gui.base/.src/IconView/IconView.class index b165feb7c..af067f705 100644 --- a/comp/src/gb.gui.base/.src/IconView/IconView.class +++ b/comp/src/gb.gui.base/.src/IconView/IconView.class @@ -1103,9 +1103,9 @@ Public Sub ScrollArea_MouseUp() If $iCurrent >= 0 Then If $iCurrent = $iCurrentBefore Then '$aItems[$iCurrent].Rename - Else - RaiseEvent(EVENT_CLICK, $iCurrent) Endif + ' Click is always raised, Select may not + RaiseEvent(EVENT_CLICK, $iCurrent) Endif Endif