Changeset - r8326:45992674ba20
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-01-17 13:37:28
peter1138@openttd.org
(svn r11892) -Fix (r11879): View switched from ungrouped to all vehicles as ungrouped is not technically a valid group, and ensure dropdown is removed
on any click in the window.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/group_gui.cpp
Show inline comments
 
@@ -305,7 +305,7 @@ static void GroupWndProc(Window *w, Wind
 
		case WE_INVALIDATE_DATA:
 
			gv->l.flags |= VL_REBUILD;
 
			gl->l.flags |= VL_REBUILD;
 
			if (!IsValidGroupID(gv->group_sel)) {
 
			if (!(IsAllGroupID(gv->group_sel) || IsDefaultGroupID(gv->group_sel) || IsValidGroupID(gv->group_sel))) {
 
				gv->group_sel = ALL_GROUP;
 
				HideDropDownMenu(w);
 
			}
 
@@ -503,6 +503,8 @@ static void GroupWndProc(Window *w, Wind
 
		}
 

	
 
		case WE_CLICK:
 
			HideDropDownMenu(w);
 

	
 
			switch(e->we.click.widget) {
 
				case GRP_WIDGET_SORT_BY_ORDER: // Flip sorting method ascending/descending
 
					gv->l.flags ^= VL_DESC;
0 comments (0 inline, 0 general)