sw/source/ui/dialog/uiregionsw.cxx | 4 ++-- sw/source/uibase/app/docst.cxx | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-)
New commits: commit 7712d66102a96c03fb2d90d74f26f6661d9e44f7 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 19 11:24:51 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Feb 23 22:02:51 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/+/200087 Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index 8451e13a5f66..b0a8e0e666cc 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 6422ab6af24ecdbc56ef19e8ffda6b241effc5f1 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 19 11:00:52 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Feb 23 22:02:44 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/+/200086 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 aa9b23f0b658..9cafc4308873 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -469,12 +469,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;
