mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 14:39:27 +02:00
Qt: fixed crash from TQtTreeWidget.SignalCurrentItemChanged().issue #18701
git-svn-id: trunk@29403 -
This commit is contained in:
parent
8cd980cb5b
commit
db62c04d27
@ -10486,7 +10486,12 @@ begin
|
||||
AIndex := getRow(Previous);
|
||||
ListItem := nil;
|
||||
B := False;
|
||||
if ViewStyle = Ord(vsReport) then
|
||||
// From Qt docs:
|
||||
// This signal is emitted when the current item changes.
|
||||
// The current item is specified by current, and this replaces
|
||||
// the previous current item.
|
||||
// So, if Current = nil, do not ask TListView anything ! issue #18701
|
||||
if (ViewStyle = Ord(vsReport)) and (Current <> nil) then
|
||||
begin
|
||||
ListItem := TListView(LCLObject).Selected;
|
||||
if ListItem <> nil then
|
||||
|
Loading…
Reference in New Issue
Block a user