diff options
-rw-r--r-- | vcl/qt5/QtFrame.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx index 3949650a410c..2f314b3735ef 100644 --- a/vcl/qt5/QtFrame.cxx +++ b/vcl/qt5/QtFrame.cxx @@ -523,6 +523,13 @@ void QtFrame::SetDefaultSize() void QtFrame::SetPosSize(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt16 nFlags) { + SolarMutexGuard g; + QtInstance* pQtInstance = GetQtInstance(); + if (!pQtInstance->IsMainThread()) + { + pQtInstance->RunInMainThread([&] { SetPosSize(nX, nY, nWidth, nHeight, nFlags); }); + } + if (!isWindow() || isChild(true, false)) return; |