diff options
Diffstat (limited to 'sc/source/ui/optdlg/tpcalc.cxx')
-rw-r--r-- | sc/source/ui/optdlg/tpcalc.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx index 4a2e0a4e1a4a..3351289b43ce 100644 --- a/sc/source/ui/optdlg/tpcalc.cxx +++ b/sc/source/ui/optdlg/tpcalc.cxx @@ -21,6 +21,7 @@ #include <scitems.hxx> #include <vcl/msgbox.hxx> +#include <vcl/weld.hxx> #include <global.hxx> #include <globstr.hrc> @@ -235,9 +236,9 @@ DeactivateRC ScTpCalcOptions::DeactivatePage( SfxItemSet* pSetP ) if ( nReturn == DeactivateRC::KeepPage ) { - ScopedVclPtrInstance<MessageDialog>( this, - ScGlobal::GetRscString( STR_INVALID_EPS ) - )->Execute(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Warning, + VclButtonsType::Ok, ScGlobal::GetRscString(STR_INVALID_EPS))); + xBox->run(); m_pEdEps->GrabFocus(); } |