summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-01-22 12:35:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-01-22 19:48:14 +0100
commit6a5ef1a2b009f208745a251828bf8e8c51146bfe (patch)
tree2f73ebb3e73623306a16d29ea3edcdc3cc145618 /starmath
parent05e637b36043fac83265bbdfbdba97632a8e939e (diff)
make charmap dialog async
Change-Id: I222240dc1715604ad1e82e1062b34d116b2840f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162367 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 8f88b5ced643..9c704baa6aa7 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1815,10 +1815,15 @@ void SmViewShell::Execute(SfxRequest& rReq)
aSet.Put(SfxBoolItem(FN_PARAM_1, false));
aSet.Put(SfxStringItem(SID_FONT_NAME,
GetDoc()->GetFormat().GetFont(FNT_VARIABLE).GetFamilyName()));
- ScopedVclPtr<SfxAbstractDialog> pDialog(
+ VclPtr<SfxAbstractDialog> pDialog(
pFact->CreateCharMapDialog(pWin ? pWin->GetFrameWeld() : nullptr, aSet,
GetViewFrame().GetFrame().GetFrameInterface()));
- pDialog->Execute();
+ pDialog->StartExecuteAsync(
+ [pDialog] (sal_Int32 /*nResult*/)->void
+ {
+ pDialog->disposeOnce();
+ }
+ );
}
break;