diff options
-rw-r--r-- | gui/widgets/list.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |