Qt: fixed bug where modal form completely ignores forms Z-Order (eg. opening modal from non-modal form), introduced in r 24682 with SetTaskBarBehaviour

git-svn-id: trunk@24724 -
This commit is contained in:
zeljko 2010-04-19 15:16:33 +00:00
parent 3d2e80c49c
commit e783e90ae8

View File

@ -4645,7 +4645,8 @@ end;
procedure TQtMainWindow.setShowInTaskBar(AValue: Boolean); procedure TQtMainWindow.setShowInTaskBar(AValue: Boolean);
begin begin
FShowOnTaskBar := AValue; FShowOnTaskBar := AValue;
UpdateParent; if not QWidget_isModal(Widget) then
UpdateParent;
end; end;
procedure TQtMainWindow.setPopupParent(APopupMode: TPopupMode; NewParent: QWidgetH); procedure TQtMainWindow.setPopupParent(APopupMode: TPopupMode; NewParent: QWidgetH);