src/station_gui.cpp
changeset 7842 08babe3cf58a
parent 7824 5a63d41b59ea
child 7886 f0901496b7f1
equal deleted inserted replaced
7841:8f9ab4f7064b 7842:08babe3cf58a
   441 					break;
   441 					break;
   442 				}
   442 				}
   443 
   443 
   444 				case STATIONLIST_WIDGET_SORTBY: /*flip sorting method asc/desc*/
   444 				case STATIONLIST_WIDGET_SORTBY: /*flip sorting method asc/desc*/
   445 					sl->flags ^= SL_ORDER; //DESC-flag
   445 					sl->flags ^= SL_ORDER; //DESC-flag
   446 					station_sort.order = GB(sl->flags, 0, 1);
   446 					station_sort.order = HASBIT(sl->flags, 0);
   447 					sl->flags |= SL_RESORT;
   447 					sl->flags |= SL_RESORT;
   448 					w->flags4 |= 5 << WF_TIMEOUT_SHL;
   448 					w->flags4 |= 5 << WF_TIMEOUT_SHL;
   449 					LowerWindowWidget(w, STATIONLIST_WIDGET_SORTBY);
   449 					LowerWindowWidget(w, STATIONLIST_WIDGET_SORTBY);
   450 					SetWindowDirty(w);
   450 					SetWindowDirty(w);
   451 					break;
   451 					break;