diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index dc83c552f8..be085b590e 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -4645,7 +4645,8 @@ end; procedure TQtMainWindow.setShowInTaskBar(AValue: Boolean); begin FShowOnTaskBar := AValue; - UpdateParent; + if not QWidget_isModal(Widget) then + UpdateParent; end; procedure TQtMainWindow.setPopupParent(APopupMode: TPopupMode; NewParent: QWidgetH);