Kaydet (Commit) 5f30114c authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#115964 force password dialog to center on parent size request

this is similar to...

commit d17d9500
Date:   Tue Apr 16 14:49:46 2019 +0100

    tdf#124597 template select dialog launched before parent gets final size

where the dialog is launched before its parent window has got to its final size

Change-Id: I0f54a8da482ed75fa939e230b69c0eb918782bf5
Reviewed-on: https://gerrit.libreoffice.org/70943
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 592ec4b9
......@@ -41,6 +41,9 @@ PasswordDialog::PasswordDialog(weld::Window* pParent,
, aPasswdMismatch(Translate::get(STR_PASSWORD_MISMATCH, rLocale))
, rResLocale(rLocale)
{
// tdf#115964 we can be launched before the parent has resized to its final size
m_xDialog->set_centered_on_parent_geometry_request();
if( nDialogMode == task::PasswordRequestMode_PASSWORD_REENTER )
{
const char* pOpenToModifyErrStrId = bOpenToModify ? STR_ERROR_PASSWORD_TO_MODIFY_WRONG : STR_ERROR_PASSWORD_TO_OPEN_WRONG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment