diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-27 10:11:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-27 17:25:59 +0100 |
commit | 9fcef57a34dbd88a98621dfaf8668fa076dd98f1 (patch) | |
tree | 844e9ca54e0b30faf1b71b42397b4a8143460a43 /sfx2 | |
parent | aa4548d1f91e15b8711bbcbd2ad939247579f9a8 (diff) |
convert Redline warning dialog to .ui to get helpids
etc.
Change-Id: Ic5e6031fe99347f19002d5d8527b5632333fefb0
Reviewed-on: https://gerrit.libreoffice.org/50431
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 32249bd1db6b..33404ae1ca2d 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -2692,10 +2692,11 @@ ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter, { break; } - ScopedVclPtrInstance<MessBox>(Application::GetDefDialogParent(), - MessBoxStyle::Ok, 0, "Password length", - "The password you have entered causes interoperability issues. Please enter a password that is shorter than 52 bytes, or longer than 55 bytes." - )->Execute(); + vcl::Window* pWin = Application::GetDefDialogParent(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Warning, + VclButtonsType::Ok, SfxResId(STR_PASSWORD_LEN))); + xBox->set_secondary_text(SfxResId(STR_PASSWORD_WARNING)); + xBox->run(); } while (true); if ( pPasswordRequest->isPassword() ) |