diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/config/optload.cxx | 5 | ||||
-rw-r--r-- | sw/source/uibase/inc/optload.hxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx index 05dafb14430a..6639024a8baf 100644 --- a/sw/source/ui/config/optload.cxx +++ b/sw/source/ui/config/optload.cxx @@ -131,8 +131,7 @@ SwLoadOptPage::SwLoadOptPage(weld::Container* pPage, weld::DialogController* pCo m_xUseCharUnit->hide(); } - Link<weld::Button&,void> aLink = LINK(this, SwLoadOptPage, StandardizedPageCountCheckHdl); - m_xShowStandardizedPageCount->connect_clicked(aLink); + m_xShowStandardizedPageCount->connect_toggled(LINK(this, SwLoadOptPage, StandardizedPageCountCheckHdl)); } SwLoadOptPage::~SwLoadOptPage() @@ -145,7 +144,7 @@ std::unique_ptr<SfxTabPage> SwLoadOptPage::Create( weld::Container* pPage, weld: return std::make_unique<SwLoadOptPage>(pPage, pController, *rAttrSet ); } -IMPL_LINK_NOARG(SwLoadOptPage, StandardizedPageCountCheckHdl, weld::Button&, void) +IMPL_LINK_NOARG(SwLoadOptPage, StandardizedPageCountCheckHdl, weld::ToggleButton&, void) { m_xStandardizedPageSizeNF->set_sensitive(m_xShowStandardizedPageCount->get_active()); } diff --git a/sw/source/uibase/inc/optload.hxx b/sw/source/uibase/inc/optload.hxx index 0bb020800765..4f8b8c23ca2b 100644 --- a/sw/source/uibase/inc/optload.hxx +++ b/sw/source/uibase/inc/optload.hxx @@ -77,7 +77,7 @@ private: std::unique_ptr<weld::SpinButton> m_xStandardizedPageSizeNF; DECL_LINK(MetricHdl, weld::ComboBox&, void); - DECL_LINK(StandardizedPageCountCheckHdl, weld::Button&, void); + DECL_LINK(StandardizedPageCountCheckHdl, weld::ToggleButton&, void); public: SwLoadOptPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); |