Qt: avoid crash on heavy usage of modal forms under X11.

git-svn-id: trunk@18252 -
This commit is contained in:
zeljko 2009-01-11 13:41:40 +00:00
parent 7467771ed0
commit ee30551a12

View File

@ -259,7 +259,15 @@ begin
We can ofcource hide widget, set flags here and then show it, but we dont We can ofcource hide widget, set flags here and then show it, but we dont
want window flickering :) want window flickering :)
Under X11 we must call syncX() since heavy usage of modal forms can segfault
sometimes inside qt4 libs.
} }
{$IFNDEF QTOPIA}
{$IFDEF LINUX}
QApplication_syncX();
{$ENDIF}
{$ENDIF}
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------