From 652e2136984a5b023b5551914cb9786a0d8f1540 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 28 May 2020 16:05:15 +0100 Subject: change TreeView toggle signal to provide an iter instead of a row index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib611780816d170daa40f394b9798640ff6284d68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95056 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- desktop/source/deployment/gui/dp_gui_updatedialog.cxx | 6 ++---- desktop/source/deployment/gui/dp_gui_updatedialog.hxx | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index 60a0337119d5..cb161d631809 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -487,14 +487,12 @@ short UpdateDialog::run() { return nRet; } -IMPL_LINK(UpdateDialog, entryToggled, const row_col&, rRowCol, void) +IMPL_LINK(UpdateDialog, entryToggled, const weld::TreeView::iter_col&, rRowCol, void) { - int nRow = rRowCol.first; - // error's can't be enabled const UpdateDialog::Index* p = reinterpret_cast(m_xUpdates->get_id(rRowCol.first).toInt64()); if (p->m_eKind == SPECIFIC_ERROR) - m_xUpdates->set_toggle(nRow, TRISTATE_FALSE, 0); + m_xUpdates->set_toggle(rRowCol.first, TRISTATE_FALSE, 0); enableOk(); } diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx index 291f028504c4..dd3ae621a5a5 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx @@ -127,8 +127,7 @@ private: DECL_LINK(allHandler, weld::ToggleButton&, void); DECL_LINK(okHandler, weld::Button&, void); DECL_LINK(closeHandler, weld::Button&, void); - typedef std::pair row_col; - DECL_LINK(entryToggled, const row_col&, void); + DECL_LINK(entryToggled, const weld::TreeView::iter_col&, void); css::uno::Reference< css::uno::XComponentContext > m_context; OUString m_none; -- cgit v1.2.3