[haiku-commits] r35749 - haiku/trunk/src/kits/interface

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 3 Mar 2010 23:46:25 +0100 (CET)

Author: stippi
Date: 2010-03-03 23:46:25 +0100 (Wed, 03 Mar 2010)
New Revision: 35749
Changeset: http://dev.haiku-os.org/changeset/35749/haiku

Modified:
   haiku/trunk/src/kits/interface/Menu.cpp
Log:
Fixed hovering over a sub-menu to let it open automatically, which I broke
with my previous commit.


Modified: haiku/trunk/src/kits/interface/Menu.cpp
===================================================================
--- haiku/trunk/src/kits/interface/Menu.cpp     2010-03-03 22:08:47 UTC (rev 
35748)
+++ haiku/trunk/src/kits/interface/Menu.cpp     2010-03-03 22:46:25 UTC (rev 
35749)
@@ -1670,7 +1670,8 @@
                                        break;
                                GetMouse(&newLocation, &newButtons, true);
                                UnlockLooper();
-                       } while (newLocation == location && newButtons == 
buttons);
+                       } while (newLocation == location && newButtons == 
buttons
+                               && !(item && item->Submenu() != NULL));
                        bigtime_t newPollTime = system_time();
 
                        // mouseSpeed in px per ms


Other related posts:

  • » [haiku-commits] r35749 - haiku/trunk/src/kits/interface - superstippi