From 59631627c8e21fceeeb53b6a75853a5be6c273a7 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Mon, 29 Jul 2019 11:54:59 +0200 Subject: TTS: Fix reading of list widgets The TTS read items from list widgets even when the mouse was outside the widget --- gui/widgets/list.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/widgets') diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 26edd0a4ba..0d2e9c0ef4 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -268,6 +268,10 @@ void ListWidget::handleMouseMoved(int x, int y, int button) { if (!isEnabled()) return; + // Determine if we are inside the widget + if (x < 0 || x > _w) + return; + // First check whether the selection changed int item = findItem(x, y); -- cgit v1.2.3