summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-07 09:31:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-07 09:55:05 +0100
commit977ccf4b0fffc178ad550bda47421db5bc4c82fd (patch)
tree97a4114435930be2f08b9df9a14091e02f1a07cf /sw/source/ui/envelp
parent57d4cd80dcaf01fe4897d79d89e906d355410243 (diff)
loplugin:collapseif in sw
Change-Id: I61e32f6ecaf72d51528af4b067d651a17691d4b1 Reviewed-on: https://gerrit.libreoffice.org/62986 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/envelp')
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx
index f896e3b52f73..f9648fdd83fa 100644
--- a/sw/source/ui/envelp/mailmrge.cxx
+++ b/sw/source/ui/envelp/mailmrge.cxx
@@ -413,10 +413,8 @@ void SwMailMergeDlg::Apply()
IMPL_LINK( SwMailMergeDlg, ButtonHdl, Button *, pBtn, void )
{
- if (pBtn == m_pOkBTN) {
- if( ExecQryShell() )
- EndDialog(RET_OK);
- }
+ if (pBtn == m_pOkBTN && ExecQryShell() )
+ EndDialog(RET_OK);
}
IMPL_LINK( SwMailMergeDlg, OutputTypeHdl, Button *, pBtn, void )