diff options
Diffstat (limited to 'sw/source/ui/dbui/mmresultdialogs.cxx')
-rw-r--r-- | sw/source/ui/dbui/mmresultdialogs.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index 61bd63b3efd1..25af6e39e51b 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -1080,12 +1080,15 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void) xStore->storeToURL( sTargetTempURL, aValues ); //create the send dialog - VclPtr<SwSendMailDialog> pDlg = VclPtr<SwSendMailDialog>::Create(pButton, *xConfigItem); - pDlg->ShowDialog(); + vcl::Window* pParent = Application::GetDefDialogParent(); + VclPtr<SwSendMailDialog> pDlg = VclPtr<SwSendMailDialog>::Create(pParent, *xConfigItem); + + pDlg->ShowDialog(nEnd - nBegin); //help to force painting the dialog //TODO/CLEANUP //predetermined breaking point Application::Reschedule( true ); + endDialog(pButton); for(sal_uInt32 nDoc = nBegin; nDoc < nEnd; ++nDoc) { SwDocMergeInfo& rInfo = xConfigItem->GetDocumentMergeInfo(nDoc); @@ -1237,7 +1240,6 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void) pDlg->EnableDestruction(); ::osl::File::remove( sTargetTempURL ); - endDialog(pButton); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |