summaryrefslogtreecommitdiff
path: root/vcl/source/app/stdtext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/app/stdtext.cxx')
-rw-r--r--vcl/source/app/stdtext.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/app/stdtext.cxx b/vcl/source/app/stdtext.cxx
index 2e549e539db4..dbd6a0f5b82c 100644
--- a/vcl/source/app/stdtext.cxx
+++ b/vcl/source/app/stdtext.cxx
@@ -17,18 +17,19 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <vcl/layout.hxx>
#include <vcl/stdtext.hxx>
+#include <vcl/weld.hxx>
#include <strings.hrc>
#include <svdata.hxx>
-void ShowServiceNotAvailableError(vcl::Window* pParent,
+void ShowServiceNotAvailableError(weld::Widget* pParent,
const OUString& rServiceName, bool bError)
{
OUString aText = VclResId(SV_STDTEXT_SERVICENOTAVAILABLE).replaceAll("%s", rServiceName);
- ScopedVclPtrInstance< MessageDialog > aBox( pParent, aText, bError ? VclMessageType::Error : VclMessageType::Warning );
- aBox->Execute();
+ std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pParent,
+ bError ? VclMessageType::Error : VclMessageType::Warning, VclButtonsType::Ok, aText));
+ xBox->run();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */