summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-03-26 10:59:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-26 17:16:08 +0100
commitfc1b2a0ab2ecddaeead680aee80a49109082a47b (patch)
treef432628945660ddc2c59f6653c0c5839c5bea40d /sc/source/ui/view/cellsh2.cxx
parent328416e015174778d11e982fd56f2cb59b0a5168 (diff)
tdf#160338 Calc freeze on Text Attribute dialog
This reverts commit 76e9023c8abc823447b1128056e55238f90da8d6 Author: Noel Grandin <noelgrandin@gmail.com> Date: Mon Jan 22 08:36:28 2024 +0200 convert more calc dialogs to async I fixed some lifetime issues, but even once that was happy, the Text Attributes dialog was not receiving mouse events properly, something else is unhappy when we mix async and modal dialogs. Change-Id: I4a35d886895c65af2085b606ff5c7a7c02fb5671 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165305 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/cellsh2.cxx')
-rw-r--r--sc/source/ui/view/cellsh2.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 5fbde9ca526f..f4a932fff402 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -368,14 +368,10 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
- VclPtr<AbstractScDataFormDlg> pDlg(pFact->CreateScDataFormDlg(
+ ScopedVclPtr<AbstractScDataFormDlg> pDlg(pFact->CreateScDataFormDlg(
pTabViewShell->GetFrameWeld(), pTabViewShell));
- pDlg->StartExecuteAsync(
- [pDlg] (sal_Int32 /*nResult*/)->void
- {
- pDlg->disposeOnce();
- }
- );
+
+ pDlg->Execute();
rReq.Done();
}