summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorVerne-Lai <verne@ossii.com.tw>2021-10-14 09:01:58 +0800
committerEike Rathke <erack@redhat.com>2022-01-24 23:03:05 +0100
commit687cfd51ac785c2ab2cb8e49dea28aa7f53cbdfb (patch)
treecbc6b8079184a6f463779c57975e8b36682e0d02 /sfx2/source
parent8204d322379cbc054fb834911d88fb0fe3b040c6 (diff)
tdf#131327 Add double clicked event on auto-redact table
Change-Id: Id927244fcd7e985edadb2b9f9cfdd61ba93066e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123570 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/autoredactdialog.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/doc/autoredactdialog.cxx b/sfx2/source/doc/autoredactdialog.cxx
index a951217fe665..4acbb8ea7816 100644
--- a/sfx2/source/doc/autoredactdialog.cxx
+++ b/sfx2/source/doc/autoredactdialog.cxx
@@ -317,7 +317,12 @@ IMPL_LINK_NOARG(SfxAutoRedactDialog, EditHdl, weld::Button&, void)
// And sync the targets box row with the actual target data
m_xTargetsBox->setRowData(nSelectedRow, pTarget);
}
-
+IMPL_LINK_NOARG(SfxAutoRedactDialog, DoubleClickEditHdl, weld::TreeView&, bool)
+{
+ if (m_xEditBtn->get_sensitive())
+ m_xEditBtn->clicked();
+ return true;
+}
IMPL_LINK_NOARG(SfxAutoRedactDialog, DeleteHdl, weld::Button&, void)
{
std::vector<int> aSelectedRows = m_xTargetsBox->get_selected_rows();
@@ -576,6 +581,7 @@ SfxAutoRedactDialog::SfxAutoRedactDialog(weld::Window* pParent)
m_xAddBtn->connect_clicked(LINK(this, SfxAutoRedactDialog, AddHdl));
m_xEditBtn->connect_clicked(LINK(this, SfxAutoRedactDialog, EditHdl));
m_xDeleteBtn->connect_clicked(LINK(this, SfxAutoRedactDialog, DeleteHdl));
+ m_xTargetsBox->connect_row_activated(LINK(this, SfxAutoRedactDialog, DoubleClickEditHdl));
}
SfxAutoRedactDialog::~SfxAutoRedactDialog()