From 0f7d09254a7499c7c8cb7031c9f3db503f5db2bd Mon Sep 17 00:00:00 2001 From: zeljko Date: Thu, 23 Feb 2012 14:26:41 +0000 Subject: [PATCH] Qt: fixed sending message to lcl when state of current active item is changed from false to true in multiselection mode. git-svn-id: trunk@35564 - --- lcl/interfaces/qt/qtwidgets.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index cdaa3c1beb..842c29f7e2 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -10436,7 +10436,9 @@ begin if (Modifiers and QtControlModifier <> 0) then begin X := getSelCount; - // DebugLn('**** Called SELECT IN 1 X=', dbgs(X)); + // DebugLn('**** Called SELECT IN 1 X=', dbgs(X),' is curr ? ',dbgs(CurrentItem = Item)); + if CurrentItem = Item then + X := 0; QListWidget_setCurrentItem(QListWidgetH(Widget), Item, QItemSelectionModelSelect); if (X <= 1) then