diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-23 09:35:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-26 15:27:09 +0000 |
commit | 942f05996bc287923cdbcae12c64e57adf8ec975 (patch) | |
tree | 7005380763a9ecb93f5f27c28174633b9774abb7 /framework | |
parent | c410a3dcfeb68ba2247c0d879727afe4ca8ed3da (diff) |
convert remaining ErrorBox to weld::MessageDialog
and
convert remaining QueryBox to weld::MessageDialog
Change-Id: Ifb4c316dee8eabf57c4940c44e29c65a2781aa6c
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/autorecovery.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index f85756fe9016..a7698055e9e5 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -88,7 +88,7 @@ #include <ucbhelper/content.hxx> #include <osl/time.h> -#include <vcl/msgbox.hxx> +#include <vcl/weld.hxx> #include <osl/file.hxx> #include <unotools/bootstrap.hxx> #include <unotools/configmgr.hxx> @@ -4087,11 +4087,11 @@ void AutoRecovery::impl_showFullDiscError() if (sBackupPath.getLength() < 1) sBackupPath = sBackupURL; - ScopedVclPtrInstance<ErrorBox> dlgError( - nullptr, MessBoxStyle::Ok, - sMsg.replaceAll("%PATH", sBackupPath)); - dlgError->SetButtonText(dlgError->GetButtonId(0), sBtn); - dlgError->Execute(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(nullptr, + VclMessageType::Error, VclButtonsType::NONE, + sMsg.replaceAll("%PATH", sBackupPath))); + xBox->add_button(sBtn, RET_OK); + xBox->run(); } void AutoRecovery::impl_establishProgress(const AutoRecovery::TDocumentInfo& rInfo , |