diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-01-09 10:52:43 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-01-09 10:52:43 +0000 |
commit | e434ffc5655046d27f5e9436ab25431758fa2197 (patch) | |
tree | 1c447935ff8f85a1b975a64ef32d1a62b90e262f /guilib/GUIWindow.cpp | |
parent | d42df80b8fd9ec9aea3ae8f729434a8d50557ce4 (diff) |
fixed: better fallthrough of mouse actions from child to parent, plus a memory leak.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26588 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIWindow.cpp')
-rw-r--r-- | guilib/GUIWindow.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/guilib/GUIWindow.cpp b/guilib/GUIWindow.cpp index 143b779d38..b8d1fae4b5 100644 --- a/guilib/GUIWindow.cpp +++ b/guilib/GUIWindow.cpp @@ -387,11 +387,7 @@ bool CGUIWindow::OnMouseAction() else event = new CMouseEvent(0); // mouse move only - if (SendMouseEvent(mousePoint, *event)) - return true; - - // no control wanted it - see if we can handle it ourselves - bool handled = OnMouseEvent(mousePoint, *event); + bool handled = SendMouseEvent(mousePoint, *event); delete event; return handled; } |