From 1a481fb2277d5e8f77d615351ba9156f57161372 Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 2 May 2009 00:53:21 +0000 Subject: [PATCH] removed useless events triggered every time mouse moved over a ribbon git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3444 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/widget.cpp b/src/gui/widget.cpp index 8614bcbb7..8e2a8e712 100644 --- a/src/gui/widget.cpp +++ b/src/gui/widget.cpp @@ -477,6 +477,7 @@ bool RibbonWidget::mouseHovered(Widget* child) { if(m_children.get(i) == child) { + if(m_selection == i) return false; // was already selected, don't send another event m_selection = i; break; }