Merged revision(s) 49211 #adcc1a2862 from trunk:

Qt: better check if variant is really valid handle.
........

git-svn-id: branches/fixes_1_4@49273 -
This commit is contained in:
maxim 2015-06-04 21:34:59 +00:00
parent 28619e9df8
commit d9c5e76c53

View File

@ -388,7 +388,7 @@ begin
{$IFDEF CPU64}
Obj := TObject(QVariant_toULongLong(V, @Ok));
{$ENDIF}
if OK and (Obj <> nil) then
if OK and QtWidgetset.IsValidHandle(HWND(Obj)) then
begin
if not (Obj is TQtWidget) then
raise Exception.Create('QtObjectFromWidgetH: QObject_property returned '