diff options
Diffstat (limited to 'scripting/source/dlgprov/dlgevtatt.cxx')
-rw-r--r-- | scripting/source/dlgprov/dlgevtatt.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index 563faeed79e8..e1e27cc8a4a6 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -24,7 +24,8 @@ #include <sfx2/strings.hrc> #include <sfx2/app.hxx> #include <sfx2/sfxresid.hxx> -#include <vcl/layout.hxx> +#include <vcl/svapp.hxx> +#include <vcl/weld.hxx> #include <tools/diagnose_ex.h> #include <com/sun/star/awt/XControl.hpp> @@ -624,7 +625,9 @@ namespace dlgprov aOUFinal += aQuoteChar; aOUFinal += aRes.copy( nIndex + 2 ); - ScopedVclPtrInstance<MessageDialog>(nullptr, aOUFinal)->Execute(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(nullptr, + VclMessageType::Warning, VclButtonsType::Ok, aOUFinal)); + xBox->run(); } } |