diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-25 11:24:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-26 06:49:31 +0000 |
commit | fe1f1247fad782bdf43322532fdeb1ba9f03135a (patch) | |
tree | c8dfc79901c98bb69c3dd5e2a8ea5ab8cbbe6360 /vcl/source/window/btndlg.cxx | |
parent | 9c34797cc98030614b384b6ea0f233d59ae82253 (diff) |
loplugin:expandablemethods in vcl
Change-Id: I1876e203d3a3a5fa36d83a9b282ba49429c1da2a
Reviewed-on: https://gerrit.libreoffice.org/30261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/btndlg.cxx')
-rw-r--r-- | vcl/source/window/btndlg.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vcl/source/window/btndlg.cxx b/vcl/source/window/btndlg.cxx index 70d3d45031ef..aafb1c828e1e 100644 --- a/vcl/source/window/btndlg.cxx +++ b/vcl/source/window/btndlg.cxx @@ -220,7 +220,8 @@ IMPL_LINK( ButtonDialog, ImplClickHdl, Button*, pBtn, void ) if ( it->mpPushButton == pBtn ) { mnCurButtonId = it->mnId; - Click(); + if ( IsInExecute() ) + EndDialog( mnCurButtonId ); break; } } @@ -260,12 +261,6 @@ void ButtonDialog::StateChanged( StateChangedType nType ) Dialog::StateChanged( nType ); } -void ButtonDialog::Click() -{ - if ( IsInExecute() ) - EndDialog( GetCurButtonId() ); -} - void ButtonDialog::AddButton( const OUString& rText, sal_uInt16 nId, ButtonDialogFlags nBtnFlags, long nSepPixel ) { |