diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/TextConnectionHelper.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index 93e7b4b9277a..d3bdf381a3eb 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -32,7 +32,7 @@ #include <svl/intitem.hxx> #include <dsitems.hxx> #include "dbfindex.hxx" -#include <vcl/layout.hxx> +#include <vcl/weld.hxx> #include <vcl/mnemonic.hxx> #include <svl/cjkoptions.hxx> #if HAVE_FEATURE_JAVA @@ -309,7 +309,10 @@ namespace dbaui } else return true; - ScopedVclPtrInstance<MessageDialog>(nullptr, MnemonicGenerator::EraseAllMnemonicChars(aErrorText))->Execute(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(nullptr, + VclMessageType::Warning, VclButtonsType::Ok, + MnemonicGenerator::EraseAllMnemonicChars(aErrorText))); + xBox->run(); pErrorWin->GrabFocus(); return false; } |