View | Details | Raw Unified | Return to bug 247444 | Differences between
and this patch

Collapse All | Expand All

(-)editors/libreoffice/files/patch-vcl_qt5_Qt5Instance.cxx (+17 lines)
Line 0 Link Here
1
--- vcl/qt5/Qt5Instance.cxx.orig	2020-05-13 11:19:20 UTC
2
+++ vcl/qt5/Qt5Instance.cxx
3
@@ -261,7 +261,13 @@ SalFrame* Qt5Instance::CreateChildFrame(SystemParentDa
4
 SalFrame* Qt5Instance::CreateFrame(SalFrame* pParent, SalFrameStyleFlags nStyle)
5
 {
6
     assert(!pParent || dynamic_cast<Qt5Frame*>(pParent));
7
-    return new Qt5Frame(static_cast<Qt5Frame*>(pParent), nStyle, m_bUseCairo);
8
+    SalFrame* pRet(nullptr);
9
+    bool bUseCairo = m_bUseCairo;
10
+    RunInMainThread([&pRet, pParent, nStyle, bUseCairo]() {
11
+        pRet = new Qt5Frame(static_cast<Qt5Frame*>(pParent), nStyle, bUseCairo);
12
+    });
13
+    assert(pRet);
14
+    return pRet;
15
 }
16
 
17
 void Qt5Instance::DestroyFrame(SalFrame* pFrame)

Return to bug 247444