aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-12-27 10:30:52 +0100
committerTorbjörn Andersson2012-12-27 10:30:52 +0100
commitba182faeaf3158f6bbeec001617f64a954637c9d (patch)
tree0fe12640cef9da381f43e8fa1a56b5209275ec55
parent34098bc688da2d7f0595cb618d30a252de67da6b (diff)
downloadscummvm-rg350-ba182faeaf3158f6bbeec001617f64a954637c9d.tar.gz
scummvm-rg350-ba182faeaf3158f6bbeec001617f64a954637c9d.tar.bz2
scummvm-rg350-ba182faeaf3158f6bbeec001617f64a954637c9d.zip
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.
-rw-r--r--gui/widgets/popup.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}
}