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
This commit is contained in:
Tobias Boege 2018-06-28 19:07:31 +02:00 committed by gambas
parent db363c53fa
commit 1979d2f142

View file

@ -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