summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-17 13:33:42 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-18 09:13:56 +0100
commit8020686ff93fc19c4089c66c1039d1239f33361f (patch)
treeed48fe9a50ee6cc6e24eefc17f7fbc6a145862e3 /sw/source
parent77068aa0f83f526ab115c183e02e3aa8c7bf1967 (diff)
SwMMResultEmailDialog: disable from/to numeric fields by default
In the old code these were hidden by default, and when the user clicked on "Send merged document as E-Mail", the click event handler disabled them. Now that there is a separate dialog for email sending, disabling has to happen in the dialog constructor. Change-Id: Ie0024a470e042e120ee424bf6a74dffa6f7a43a6
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/dbui/mmresultdialogs.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index ed2dcec8123d..a60576a22a1f 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -323,8 +323,11 @@ SwMMResultEmailDialog::SwMMResultEmailDialog(vcl::Window* pParent)
m_pSendAsPB->SetClickHdl(LINK(this, SwMMResultEmailDialog, SendAsHdl_Impl));
m_pSendAsLB->SetSelectHdl(LINK(this, SwMMResultEmailDialog, SendTypeHdl_Impl));
- m_pSendAllRB->SetClickHdl(LINK(this, SwMMResultEmailDialog, DocumentSelectionHdl_Impl));
- m_pFromRB->SetClickHdl(LINK(this, SwMMResultEmailDialog, DocumentSelectionHdl_Impl));
+ Link<Button*,void> aLink = LINK(this, SwMMResultEmailDialog, DocumentSelectionHdl_Impl);
+ m_pSendAllRB->SetClickHdl(aLink);
+ m_pFromRB->SetClickHdl(aLink);
+ // m_pSendAllRB is the default, so disable m_pFromNF and m_pToNF initially.
+ aLink.Call(m_pSendAllRB);
m_pOKButton->SetClickHdl(LINK(this, SwMMResultEmailDialog, SendDocumentsHdl_Impl));