Changeset 21961
- Timestamp:
- 08/14/07 22:12:05 (16 months ago)
- Files:
-
- 1 modified
-
haiku/trunk/src/kits/interface/Window.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/src/kits/interface/Window.cpp
r21959 r21961 1009 1009 BView *view = dynamic_cast<BView *>(target); 1010 1010 1011 // Close an eventually opened menu, unless the target is the menu itself 1011 // Close an eventually opened menu, if this click targets the 1012 // preferred handler, and unless the target is the menu itself 1012 1013 BMenu *menu = dynamic_cast<BMenu *>(fFocus); 1013 if (menu != NULL && menu != view && menu->State() != MENU_STATE_CLOSED) { 1014 if (menu != NULL && menu != view && PreferredHandler() == target 1015 && menu->State() != MENU_STATE_CLOSED) { 1014 1016 menu->QuitTracking(); 1015 1017 return;
