From 6c6bdd4c89fcfe7c4f5d6d5dcd6e359a3e7beb04 Mon Sep 17 00:00:00 2001 From: zeljko Date: Sat, 27 Mar 2010 19:13:13 +0000 Subject: [PATCH] Qt: allow LCL resize message in case of TQtMainWindow since WindowState can be changed in the meantime. git-svn-id: trunk@24252 - --- lcl/interfaces/qt/qtwidgets.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index 8e5455b1c0..b0e1d22765 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -2856,8 +2856,8 @@ begin } if not Assigned(LCLObject) then exit; - // do not loop with LCL - if InUpdate then + // do not loop with LCL but do not apply it to TQtMainWindow ! + if not (ClassType = TQtMainWindow) and InUpdate then exit; if (NewSize.cx <> LCLObject.Width) or (NewSize.cy <> LCLObject.Height) or