diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-26 13:28:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-27 09:52:32 +0000 |
commit | 0fad8d308122a862aa49dece498d56a418df2afe (patch) | |
tree | e67e7df1f9d315648535f436b424c9941dea589e /filter | |
parent | Resolves: tdf#115951 wrong entry selected for numbering pos (diff) | |
download | core-0fad8d308122a862aa49dece498d56a418df2afe.tar.gz core-0fad8d308122a862aa49dece498d56a418df2afe.zip |
convert remaining WarningBox to weld::MessageDialog
Change-Id: I7e3c156a6ad47ac232636ae274280c1cb7556d4a
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx index 88918bcdac29..fa0f745ff89c 100644 --- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx @@ -31,7 +31,6 @@ #include <osl/file.hxx> #include <o3tl/enumrange.hxx> #include <vcl/builderfactory.hxx> -#include <vcl/msgbox.hxx> #include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <sfx2/filedlghelper.hxx> @@ -775,8 +774,11 @@ void XMLFilterSettingsDialog::onDelete() OUString aMessage(XsltResId(STR_WARN_DELETE)); aMessage = aMessage.replaceFirst( "%s", pInfo->maFilterName ); - ScopedVclPtrInstance< WarningBox > aWarnBox(this, MessBoxStyle::YesNo | MessBoxStyle::DefaultYes, aMessage ); - if( aWarnBox->Execute() == RET_YES ) + std::unique_ptr<weld::MessageDialog> xWarn(Application::CreateMessageDialog(GetFrameWeld(), + VclMessageType::Warning, VclButtonsType::YesNo, + aMessage)); + xWarn->set_default_response(RET_YES); + if (xWarn->run() == RET_YES) { try { |