From 5262a9e88037decc26da84e7fa62f2955d4cdb85 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 21 Mar 2021 20:43:17 +0000 Subject: change SfxApplication::GetTopWindow to weld::Window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I19906f2a9d820c99375e2e5677a484d4e2e25fdb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112857 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/appl/openuriexternally.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2/source/appl/openuriexternally.cxx') diff --git a/sfx2/source/appl/openuriexternally.cxx b/sfx2/source/appl/openuriexternally.cxx index ebff4452a1c7..f8c5eda0c500 100644 --- a/sfx2/source/appl/openuriexternally.cxx +++ b/sfx2/source/appl/openuriexternally.cxx @@ -92,8 +92,8 @@ IMPL_LINK_NOARG(URITools, onOpenURI, Timer*, void) "unexpected IllegalArgumentException: " + e.Message); } SolarMutexGuard g; - vcl::Window *pWindow = SfxGetpApp()->GetTopWindow(); - std::unique_ptr eb(Application::CreateMessageDialog(pWindow ? pWindow->GetFrameWeld() : nullptr, + weld::Window *pWindow = SfxGetpApp()->GetTopWindow(); + std::unique_ptr eb(Application::CreateMessageDialog(pWindow, VclMessageType::Warning, VclButtonsType::Ok, SfxResId(STR_NO_ABS_URI_REF))); eb->set_primary_text(eb->get_primary_text().replaceFirst("$(ARG1)", msURI)); @@ -103,8 +103,8 @@ IMPL_LINK_NOARG(URITools, onOpenURI, Timer*, void) throw; } SolarMutexGuard g; - vcl::Window *pWindow = SfxGetpApp()->GetTopWindow(); - std::unique_ptr eb(Application::CreateMessageDialog(pWindow ? pWindow->GetFrameWeld() : nullptr, + weld::Window *pWindow = SfxGetpApp()->GetTopWindow(); + std::unique_ptr eb(Application::CreateMessageDialog(pWindow, VclMessageType::Warning, VclButtonsType::Ok, SfxResId(STR_NO_WEBBROWSER_FOUND))); eb->set_primary_text( -- cgit