summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appopen.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-11 09:52:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-11 18:35:27 +0100
commit3f66a801aeab257705922998e518398d27e4d698 (patch)
tree6743501be5aba32f49ab7283cc01036916175ab4 /sfx2/source/appl/appopen.cxx
parent3dfb8552eb84eaf831c4c3eb59c398afc87e9174 (diff)
keep SfxObjectShell::GetDialogParent ret as an awt::XWindow
instead of extracting the vcl::Window impl details from it Change-Id: Ia13c1559861ab2a65a2108c8ccd704cba711916c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112329 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/appl/appopen.cxx')
-rw-r--r--sfx2/source/appl/appopen.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index 4a6c1f403bbb..025316846d3d 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -206,9 +206,9 @@ ErrCode CheckPasswd_Impl
if ( bIsEncrypted )
{
- vcl::Window* pWin = pDoc ? pDoc->GetDialogParent( pFile ) : nullptr;
- if ( pWin )
- pWin->Show();
+ css::uno::Reference<css::awt::XWindow> xWin(pDoc ? pDoc->GetDialogParent(pFile) : nullptr);
+ if (xWin)
+ xWin->setVisible(true);
nRet = ERRCODE_SFX_CANTGETPASSWD;