summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-02 14:15:55 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-02 07:35:02 +0100
commit270596b0e98ee32f1d4224751a8be51a4af9ac91 (patch)
tree20c8399fba26850736f83b69a272fb16da375cb6
parentdc57c8ce3070b2a99ca312fbc349e6331b703ef7 (diff)
TSCP: change double-click to single for IP part list box
Change-Id: I1ec96ddbb4bba76b82d32a09fd2f47e46c64fc16 Reviewed-on: https://gerrit.libreoffice.org/44185 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--include/svx/ClassificationDialog.hxx2
-rw-r--r--svx/source/dialog/ClassificationDialog.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/ClassificationDialog.hxx b/include/svx/ClassificationDialog.hxx
index 043272f68c03..a03f9cb550ab 100644
--- a/include/svx/ClassificationDialog.hxx
+++ b/include/svx/ClassificationDialog.hxx
@@ -51,7 +51,7 @@ private:
DECL_LINK(SelectMarkingHdl, ListBox&, void);
DECL_LINK(SelectIPPartNumbersHdl, ListBox&, void);
DECL_LINK(SelectRecentlyUsedHdl, ListBox&, void);
- DECL_LINK(DoubleClickIPPartHdl, ListBox&, void);
+ DECL_LINK(SelectIPPartHdl, ListBox&, void);
void insertField(ClassificationType eType, OUString const & rString, OUString const & rFullString);
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx
index df271dd1c5f2..22fce44f1560 100644
--- a/svx/source/dialog/ClassificationDialog.cxx
+++ b/svx/source/dialog/ClassificationDialog.cxx
@@ -172,7 +172,7 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent, const bool bPer
m_pIntellectualPropertyPartNumberListBox->InsertEntry(rName);
m_pIntellectualPropertyPartNumberListBox->EnableAutoSize(true);
- m_pIntellectualPropertyPartListBox->SetDoubleClickHdl(LINK(this, ClassificationDialog, DoubleClickIPPartHdl));
+ m_pIntellectualPropertyPartListBox->SetSelectHdl(LINK(this, ClassificationDialog, SelectIPPartHdl));
for (const OUString& rName : maHelper.GetIntellectualPropertyParts())
m_pIntellectualPropertyPartListBox->InsertEntry(rName);
m_pIntellectualPropertyPartListBox->EnableAutoSize(true);
@@ -551,7 +551,7 @@ IMPL_LINK(ClassificationDialog, SelectRecentlyUsedHdl, ListBox&, rBox, void)
}
}
-IMPL_LINK(ClassificationDialog, DoubleClickIPPartHdl, ListBox&, rBox, void)
+IMPL_LINK(ClassificationDialog, SelectIPPartHdl, ListBox&, rBox, void)
{
const sal_Int32 nSelected = rBox.GetSelectedEntryPos();
if (nSelected >= 0)