summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-04 17:03:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-04 20:46:17 +0100
commit8ee2190b4702950d1ffc8b4e850259203e3a50e9 (patch)
tree4b4adb211f9f79cf0796ebeadd208efa07c98a0f /cui
parentf69b5dd07a910dd48e087664e31642af50b5fb9a (diff)
set parent for change password dialog
Change-Id: I4b519e9d1a6890bb03e566baac6164547a937267 Reviewed-on: https://gerrit.libreoffice.org/67374 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/webconninfo.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx
index 4b97d6a3f7ad..237ded056a45 100644
--- a/cui/source/options/webconninfo.cxx
+++ b/cui/source/options/webconninfo.cxx
@@ -25,6 +25,7 @@
#include <com/sun/star/task/XPasswordContainer2.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/docpasswordrequest.hxx>
+#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/treelistentry.hxx>
#include <vcl/layout.hxx>
@@ -268,8 +269,9 @@ IMPL_LINK_NOARG(WebConnectionInfoDialog, ChangePasswordHdl, Button*, void)
= new ::comphelper::SimplePasswordRequest;
uno::Reference< task::XInteractionRequest > rRequest( pPasswordRequest );
+ auto xWindow = VCLUnoHelper::GetInterface(this);
uno::Reference< task::XInteractionHandler > xInteractionHandler(
- task::InteractionHandler::createWithParent(comphelper::getProcessComponentContext(), nullptr),
+ task::InteractionHandler::createWithParent(comphelper::getProcessComponentContext(), xWindow),
uno::UNO_QUERY );
xInteractionHandler->handle( rRequest );