summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-28 16:05:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-29 11:51:17 +0200
commit652e2136984a5b023b5551914cb9786a0d8f1540 (patch)
tree35c97066b96e5ba9277e4df34e162d699d9fc1a5 /desktop/source
parent7f8f7e7284e29cc0e8a0f282761abea428d0eb33 (diff)
change TreeView toggle signal to provide an iter instead of a row index
Change-Id: Ib611780816d170daa40f394b9798640ff6284d68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95056 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx6
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.hxx3
2 files changed, 3 insertions, 6 deletions
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<UpdateDialog::Index const *>(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<int, int> 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;