Qt: fixed TListItem clearing icon. issue #23225

git-svn-id: trunk@39218 -
This commit is contained in:
zeljko 2012-11-01 09:10:04 +00:00
parent a0224f784a
commit d0904e069a

View File

@ -1300,6 +1300,13 @@ begin
finally
Bmp.Free;
end;
end else
if (AImageIndex < 0) then
begin
if LWI <> nil then
QListWidgetItem_setIcon(LWI, nil)
else
QTreeWidgetItem_setIcon(TWI, ASubIndex, nil);
end;
finally
ImgList.Free;