Qt: bugfix - issue #12121

git-svn-id: trunk@16540 -
This commit is contained in:
zeljko 2008-09-11 07:16:17 +00:00
parent bc98657cb3
commit ec76a4c4ac

View File

@ -327,13 +327,20 @@ var
OldWidget, NewWidget: TQtWidget;
Msg: TLMessage;
begin
//WriteLn('old: ', PtrUInt(old), ' new: ', PtrUInt(now));
// WriteLn('old: ', PtrUInt(old), ' new: ', PtrUInt(now));
OldWidget := GetFirstQtObjectFromWidgetH(old);
NewWidget := GetFirstQtObjectFromWidgetH(now);
if OldWidget = NewWidget then
Exit;
{Applies to all TQtWidgets which have "subwidgets" created
by CreateFrom() eg. comboBox.}
if (OldWidget <> nil) and
(NewWidget <> nil) and
(OldWidget.LCLObject = NewWidget.LCLObject) then
exit;
FillChar(Msg, SizeOf(Msg), 0);
if OldWidget <> nil then
begin