summaryrefslogtreecommitdiffstats
path: root/filter/source/xsltdialog/xmlfiltertabdialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/xsltdialog/xmlfiltertabdialog.cxx')
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.cxx b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
index c937e15a9e08..b153cb67ea2f 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
@@ -22,7 +22,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <comphelper/fileurl.hxx>
#include <unotools/resmgr.hxx>
-#include <vcl/layout.hxx>
+#include <vcl/weld.hxx>
#include <osl/file.hxx>
#include <strings.hrc>
@@ -261,8 +261,10 @@ bool XMLFilterTabDialog::onOk()
aMessage = aMessage.replaceAll( "%s", aReplace1 );
}
- ScopedVclPtrInstance< MessageDialog > aBox(this, aMessage);
- aBox->Execute();
+ std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(),
+ VclMessageType::Warning, VclButtonsType::Ok,
+ aMessage));
+ xBox->run();
if( pFocusWindow )
pFocusWindow->GrabFocus();