[Libreoffice-commits] core.git: uui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 18 20:31:29 UTC 2019
uui/source/passworddlg.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 5f30114c25f233fee2760645e3b1f194c8157438
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Apr 18 16:21:26 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Apr 18 22:29:17 2019 +0200
Resolves: tdf#115964 force password dialog to center on parent size request
this is similar to...
commit d17d9500a23705a315992ff42cb7c449894fc2ce
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: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx
index 9229f9ec9a46..ffa2897b24dc 100644
--- a/uui/source/passworddlg.cxx
+++ b/uui/source/passworddlg.cxx
@@ -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;
More information about the Libreoffice-commits
mailing list