mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-25 11:08:51 +02:00
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 -
This commit is contained in:
parent
f73358f89e
commit
0f7d09254a
@ -10436,7 +10436,9 @@ begin
|
|||||||
if (Modifiers and QtControlModifier <> 0) then
|
if (Modifiers and QtControlModifier <> 0) then
|
||||||
begin
|
begin
|
||||||
X := getSelCount;
|
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,
|
QListWidget_setCurrentItem(QListWidgetH(Widget), Item,
|
||||||
QItemSelectionModelSelect);
|
QItemSelectionModelSelect);
|
||||||
if (X <= 1) then
|
if (X <= 1) then
|
||||||
|
Loading…
Reference in New Issue
Block a user