summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-13 10:54:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-13 16:51:11 +0100
commita2e0abc7c6b02e2ea37d269e216d6550be76c8fe (patch)
treeeca3a48065db76f1740a3a83465c341abf942793 /svtools
parent119044e8c9e13dcdc0d5d1e080c8f168446c48f4 (diff)
factor out dialog hacks
Change-Id: Iceefc8d739fb93b97adfa1e35d8308f0c48f02e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88600 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/hatchwindow/documentcloser.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/hatchwindow/documentcloser.cxx b/svtools/source/hatchwindow/documentcloser.cxx
index 4459953e45d4..6e014dd7ea46 100644
--- a/svtools/source/hatchwindow/documentcloser.cxx
+++ b/svtools/source/hatchwindow/documentcloser.cxx
@@ -30,7 +30,8 @@
#include <cppuhelper/supportsservice.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
-#include <vcl/dialog.hxx>
+#include <vcl/dialoghelper.hxx>
+#include <vcl/window.hxx>
#include <tools/link.hxx>
#include <toolkit/helper/vclunohelper.hxx>
@@ -115,8 +116,8 @@ IMPL_STATIC_LINK( MainThreadFrameCloserRequest, worker, void*, p, void )
xWinPeer->setProperty( "PluginParent", uno::makeAny( sal_Int64(0) ) );
VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( xWindow );
- if ( pWindow )
- Dialog::EndAllDialogs( pWindow );
+ if (pWindow)
+ vcl::EndAllDialogs(pWindow);
}
catch( uno::Exception& )
{