From 277d05a7188be77162e4a388c7c825daf8d6e326 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 26 Oct 2021 17:24:11 +0100 Subject: ValueSet doesn't use WB_NOPOINTERFOCUS anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d1b1240518aa97d229d56545e353259d226f1e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124237 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svtools/source/control/valueset.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'svtools') diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index c2baa2d5a483..75665ddd2654 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -486,15 +486,9 @@ bool ValueSet::MouseButtonDown( const MouseEvent& rMouseEvent ) if (rMouseEvent.GetClicks() == 1) { if (pItem) - { SelectItem(pItem->mnId); - bConsumed = true; - } - if (!(GetStyle() & WB_NOPOINTERFOCUS)) - { - GrabFocus(); - bConsumed = true; - } + GrabFocus(); + bConsumed = true; } else if (pItem && rMouseEvent.GetClicks() == 2) { -- cgit v1.2.3