diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-11 21:42:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-12 17:36:02 +0200 |
commit | 7cfacfd4e990d5b8fd2cb3045cf632b9dd957023 (patch) | |
tree | 4417a84e121cf3f8a29ef80b1cf7267209135092 /sc/source/ui/docshell/docsh4.cxx | |
parent | 038e4b3b1e10d072b432cb06234521ae9a262a70 (diff) |
drop intermediate vcl::Window
Change-Id: If06902f0308511fb40b031899c912c36da0b610e
Reviewed-on: https://gerrit.libreoffice.org/72167
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 8d10df639169..945e98092521 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -763,9 +763,8 @@ void ScDocShell::Execute( SfxRequest& rReq ) m_pImpl->pDocInserter.reset(); ScTabViewShell* pViewSh = ScTabViewShell::GetActiveViewShell(); - vcl::Window* pParent = pViewSh ? pViewSh->GetDialogParent() : nullptr; - - m_pImpl->pDocInserter.reset( new ::sfx2::DocumentInserter(pParent ? pParent->GetFrameWeld() : nullptr, + weld::Window* pParent = pViewSh ? pViewSh->GetFrameWeld() : nullptr; + m_pImpl->pDocInserter.reset( new ::sfx2::DocumentInserter(pParent, ScDocShell::Factory().GetFactoryName(), mode ) ); m_pImpl->pDocInserter->StartExecuteModal( LINK( this, ScDocShell, DialogClosedHdl ) ); return ; |