sw/source/ui/dialog/uiregionsw.cxx | 4 ++-- sw/source/uibase/app/docst.cxx | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-)
New commits: commit 8cd0de83afcae5db2e05e55d48a25955bedf4d22 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 19 11:24:51 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Feb 12 12:27:43 2026 +0100 make this infobox async Change-Id: I0b4781cbbd97586be6e17c82a132b98ee058761f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197577 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199261 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index d81c3e0fcc01..ce3ec6df9519 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -1672,10 +1672,10 @@ void SwInsertSectionTabPage::ChangePasswd(bool bChange) } else { - std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(GetFrameWeld(), + std::shared_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Info, VclButtonsType::Ok, SwResId(STR_WRONG_PASSWD_REPEAT))); - xInfoBox->run(); + xInfoBox->runAsync(xInfoBox, [](sal_uInt32) {}); } } else if(!bChange) commit fdb3e37408023e190db20fdd1d4dee6681f0a858 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 19 11:00:52 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Feb 12 12:27:33 2026 +0100 make new style by example async Change-Id: Icd274289defd44f1fdbb08c7e56d49a379a421e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197570 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199260 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 9670cee9b957..938f01726cf0 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -470,12 +470,18 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) case SID_STYLE_NEW_BY_EXAMPLE: { SfxStyleSheetBasePool& rPool = *GetStyleSheetPool(); - SfxNewStyleDlg aDlg(GetView()->GetFrameWeld(), rPool, nFamily); - if (aDlg.run() == RET_OK) - { - aParam = aDlg.GetName(); - rReq.AppendItem(SfxStringItem(nSlot, aParam)); - } + auto xDlg = std::make_shared<SfxNewStyleDlg>(GetView()->GetFrameWeld(), rPool, SfxStyleFamily::Para); + auto xRequest = std::make_shared<SfxRequest>(rReq); + rReq.Ignore(); + weld::GenericDialogController::runAsync(xDlg, [xDlg, xRequest=std::move(xRequest), this](sal_Int32 nResult){ + if (nResult == RET_OK) { + OUString sName = xDlg->GetName(); + xRequest->AppendItem(SfxStringItem(SID_STYLE_NEW_BY_EXAMPLE, sName)); + ApplyStyleSheetRequest(sName, SID_STYLE_NEW_BY_EXAMPLE, *xRequest, SfxStyleFamily::Para, + SfxStyleSearchBits::Auto, nullptr); + } + }); + return; } break;
