summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-18 16:21:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-18 22:29:17 +0200
commit5f30114c25f233fee2760645e3b1f194c8157438 (patch)
tree404ca6179bbe1dc1a7bd615fead2aff4bdddc2e7 /uui
parent592ec4b9949818944a471a6d0efe821605957f29 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'uui')
-rw-r--r--uui/source/passworddlg.cxx3
1 files changed, 3 insertions, 0 deletions
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;