diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 14:39:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 17:31:26 +0200 |
commit | f7aca9ed4533f202e87141ca7a65d9949a36c9a1 (patch) | |
tree | 84046171c1ec08d9a05ef208a2b5ee09c670e7c0 /sw/source/ui | |
parent | 253f7af7bcd2337a06c027852286616ff91d2e3f (diff) |
HeaderHdl only does something for the m_xCbTableHeadon case
drop the others
Change-Id: Ibc07996ada54437c44201cb32f70bd594dd4a202
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115878
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index a48dfeea4726..1f19a0884273 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -354,9 +354,7 @@ SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView, m_xIbDbcolAllFrom->connect_clicked( LINK(this, SwInsertDBColAutoPilot, TableToFromHdl )); m_xIbDbcolToEdit->connect_clicked( LINK(this, SwInsertDBColAutoPilot, TableToFromHdl )); - m_xCbTableHeadon->connect_clicked( LINK(this, SwInsertDBColAutoPilot, HeaderHdl )); - m_xRbHeadlColnms->connect_clicked( LINK(this, SwInsertDBColAutoPilot, HeaderHdl )); - m_xRbHeadlEmpty->connect_clicked( LINK(this, SwInsertDBColAutoPilot, HeaderHdl )); + m_xCbTableHeadon->connect_toggled( LINK(this, SwInsertDBColAutoPilot, HeaderHdl )); m_xLbTextDbColumn->connect_changed( LINK( this, SwInsertDBColAutoPilot, TVSelectHdl )); m_xLbTableDbColumn->connect_changed( LINK( this, SwInsertDBColAutoPilot, TVSelectHdl )); @@ -797,15 +795,11 @@ IMPL_LINK_NOARG(SwInsertDBColAutoPilot, CBSelectHdl, weld::ComboBox&, void) } } -IMPL_LINK( SwInsertDBColAutoPilot, HeaderHdl, weld::Button&, rButton, void ) +IMPL_LINK_NOARG(SwInsertDBColAutoPilot, HeaderHdl, weld::ToggleButton&, void) { - if (&rButton == m_xCbTableHeadon.get()) - { - bool bEnable = m_xCbTableHeadon->get_active(); - - m_xRbHeadlColnms->set_sensitive( bEnable ); - m_xRbHeadlEmpty->set_sensitive( bEnable ); - } + bool bEnable = m_xCbTableHeadon->get_active(); + m_xRbHeadlColnms->set_sensitive( bEnable ); + m_xRbHeadlEmpty->set_sensitive( bEnable ); } static void lcl_InsTextInArr( const OUString& rText, DB_Columns& rColArr ) |