From b141e2a3253a44a4ab59889a8a08060a322540e3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 Oct 2019 09:35:44 +0000 Subject: we already have a suitable parent for the dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib5da2fe6a5b56dfff088b16639ec7a3f226b18f2 Reviewed-on: https://gerrit.libreoffice.org/81744 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/dialog/filedlghelper.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index ea3d7a821cec..9cab722760bd 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -2683,8 +2683,7 @@ ErrCode RequestPassword(const std::shared_ptr& pCurrentFilter, { break; } - vcl::Window* pWin = Application::GetDefDialogParent(); - std::unique_ptr xBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Warning, + std::unique_ptr xBox(Application::CreateMessageDialog(Application::GetFrameWeld(rParent), VclMessageType::Warning, VclButtonsType::Ok, SfxResId(STR_PASSWORD_LEN))); xBox->set_secondary_text(SfxResId(STR_PASSWORD_WARNING)); xBox->run(); -- cgit