diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-23 16:41:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 16:32:13 +0200 |
commit | 6f3c7c4506c1df1319bac2c1cc0899dda827f65f (patch) | |
tree | 66cfb0d3b7aabe903e3bde4974198a8a85a60178 /cui/source/options/optinet2.cxx | |
parent | ac7047f72087f09f2ab223f1af2518778382c06a (diff) |
set correct parent
Change-Id: I133cccc72896021c38f90efa3f9819fd5410d836
Reviewed-on: https://gerrit.libreoffice.org/79419
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/options/optinet2.cxx')
-rw-r--r-- | cui/source/options/optinet2.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 36cb6917599b..53fc71f2a69d 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -562,7 +562,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl, weld::Button&, void) xMasterPasswd->removeMasterPassword(); uno::Reference<task::XInteractionHandler> xTmpHandler(task::InteractionHandler::createWithParent(comphelper::getProcessComponentContext(), - VCLUnoHelper::GetInterface(GetParentDialog()))); + GetDialogController()->getDialog()->GetXWindow())); if ( xMasterPasswd->changeMasterPassword(xTmpHandler) ) { @@ -580,7 +580,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl, weld::Button&, void) } else { - std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(GetFrameWeld(), + std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(GetDialogFrameWeld(), VclMessageType::Question, VclButtonsType::YesNo, m_sPasswordStoringDeactivateStr)); xQueryBox->set_default_response(RET_NO); @@ -620,7 +620,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordHdl, weld::Button&, void) if ( xMasterPasswd->isPersistentStoringAllowed() ) { uno::Reference<task::XInteractionHandler> xTmpHandler(task::InteractionHandler::createWithParent(comphelper::getProcessComponentContext(), - VCLUnoHelper::GetInterface(GetParentDialog()))); + GetDialogController()->getDialog()->GetXWindow())); xMasterPasswd->changeMasterPassword(xTmpHandler); } } @@ -636,7 +636,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordCBHdl, weld::Button&, void) task::PasswordContainer::create(comphelper::getProcessComponentContext())); uno::Reference<task::XInteractionHandler> xTmpHandler(task::InteractionHandler::createWithParent(comphelper::getProcessComponentContext(), - VCLUnoHelper::GetInterface(GetParentDialog()))); + GetDialogController()->getDialog()->GetXWindow())); if ( m_xMasterPasswordCB->get_active() ) { @@ -681,7 +681,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, ShowPasswordsHdl, weld::Button&, void) task::PasswordContainer::create(comphelper::getProcessComponentContext())); uno::Reference<task::XInteractionHandler> xTmpHandler(task::InteractionHandler::createWithParent(comphelper::getProcessComponentContext(), - VCLUnoHelper::GetInterface(GetParentDialog()))); + GetDialogController()->getDialog()->GetXWindow())); if ( xMasterPasswd->isPersistentStoringAllowed() && xMasterPasswd->authorizateWithMasterPassword(xTmpHandler) ) { @@ -723,7 +723,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MacroSecPBHdl, weld::Button&, void) { Reference< security::XDocumentDigitalSignatures > xD( security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext() ) ); - xD->setParentWindow(VCLUnoHelper::GetInterface(GetParentDialog())); + xD->setParentWindow(GetDialogController()->getDialog()->GetXWindow()); xD->manageTrustedSources(); } catch (const Exception&) @@ -945,7 +945,7 @@ IMPL_LINK_NOARG(SvxEMailTabPage, FileDialogHdl_Impl, weld::Button&, void) { if (!pImpl->bROProgram) { - FileDialogHelper aHelper(css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, GetFrameWeld()); + FileDialogHelper aHelper(css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, GetDialogFrameWeld()); OUString sPath = m_xMailerURLED->get_text(); if ( sPath.isEmpty() ) sPath = "/usr/bin"; |