From ba182faeaf3158f6bbeec001617f64a954637c9d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 27 Dec 2012 10:30:52 +0100 Subject: GUI: Notify when popup widget changes by mousewheel This is consistent with the notification when the widget changes by clicking. As far as I can tell, that notification was added shortly before mouse wheel handling was added. It missing from the mouse wheel handler was presumably just an oversight. --- gui/widgets/popup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/widgets/popup.cpp b/gui/widgets/popup.cpp index 048714ba5f..61d4a54c3f 100644 --- a/gui/widgets/popup.cpp +++ b/gui/widgets/popup.cpp @@ -406,6 +406,7 @@ void PopUpWidget::handleMouseWheel(int x, int y, int direction) { if ((newSelection >= 0) && (newSelection < (int)_entries.size()) && (newSelection != _selectedItem)) { _selectedItem = newSelection; + sendCommand(kPopUpItemSelectedCmd, _entries[_selectedItem].tag); draw(); } } -- cgit v1.2.3