qt: simplified code

git-svn-id: trunk@54586 -
This commit is contained in:
zeljko 2017-04-09 08:56:48 +00:00
parent 7174c8b922
commit 2560efa563

View File

@ -589,13 +589,8 @@ begin
Widget.EndUpdate;
{$IFDEF HASX11}
// make qt interface snappy.
if Assigned(Application) and not Application.Terminated then
begin
if AWinControl.HandleObjectShouldBeVisible then
QCoreApplication_processEvents(QEventLoopAllEvents);
end;
if AWinControl.HandleObjectShouldBeVisible then
QCoreApplication_processEvents(QEventLoopAllEvents);
if (Application.TaskBarBehavior = tbSingleButton) or
(TForm(AWinControl).ShowInTaskBar <> stDefault) then