summaryrefslogtreecommitdiff
path: root/uui/source/nameclashdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/nameclashdlg.cxx')
-rw-r--r--uui/source/nameclashdlg.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/uui/source/nameclashdlg.cxx b/uui/source/nameclashdlg.cxx
index 8426086abbb8..9403c21af606 100644
--- a/uui/source/nameclashdlg.cxx
+++ b/uui/source/nameclashdlg.cxx
@@ -19,7 +19,8 @@
#include <osl/file.hxx>
#include <unotools/resmgr.hxx>
-#include <vcl/layout.hxx>
+#include <vcl/svapp.hxx>
+#include <vcl/weld.hxx>
#include <strings.hrc>
#include "nameclashdlg.hxx"
@@ -35,8 +36,10 @@ IMPL_LINK( NameClashDialog, ButtonHdl_Impl, Button *, pBtn, void )
OUString aNewName = m_pEDNewName->GetText();
if ( ( aNewName == maNewName ) || aNewName.isEmpty() )
{
- ScopedVclPtrInstance< MessageDialog > aError(nullptr, maSameName);
- aError->Execute();
+ std::unique_ptr<weld::MessageDialog> xErrorBox(Application::CreateMessageDialog(GetFrameWeld(),
+ VclMessageType::Warning, VclButtonsType::Ok,
+ maSameName));
+ xErrorBox->run();
return;
}
maNewName = aNewName;