diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-01-09 13:43:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-01-11 12:29:36 +0100 |
commit | def7929f49f1ed21c4745e5e022d5afffb110359 (patch) | |
tree | afda1afe732963471e7ca91f56ebf978361f2a3a /sfx2 | |
parent | 385c4686717959ba26f0e35c9c582c89b730d136 (diff) |
Related: tdf#122598 macro dialog from record macro has no parent
Change-Id: I4ef2bca2ada4accefcf9a5314ad60c6177d1ae19
Reviewed-on: https://gerrit.libreoffice.org/66031
Tested-by: Jenkins
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index f0af2f95e050..67d0bbcd5471 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2483,7 +2483,17 @@ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro ) return; SfxApplication* pSfxApp = SfxGetpApp(); - SfxRequest aReq( SID_BASICCHOOSER, SfxCallMode::SYNCHRON, pSfxApp->GetPool() ); + SfxItemPool& rPool = pSfxApp->GetPool(); + SfxRequest aReq(SID_BASICCHOOSER, SfxCallMode::SYNCHRON, rPool); + + //seen in tdf#122598, no parent for subsequent dialog + SfxAllItemSet aSet(rPool); + css::uno::Reference< css::frame::XFrame > xFrame( + GetFrame().GetFrameInterface(), + css::uno::UNO_QUERY); + aSet.Put(SfxUnoFrameItem(SID_FILLFRAME, xFrame)); + aReq.SetInternalArgs_Impl(aSet); + aReq.AppendItem( SfxBoolItem(SID_RECORDMACRO,true) ); const SfxPoolItem* pRet = SfxGetpApp()->ExecuteSlot( aReq ); OUString aScriptURL; |