CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 05/05/08 00:45:27
Modified files:
src : multiplayer_lobby.cpp
Log message:
made the game list in the multiplayer lobby not scroll to the top every
time it is changed
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_lobby.cpp.diff?tr1=1.70&tr2=1.71&r1=text&r2=text
Patches:
Index: wesnoth/src/multiplayer_lobby.cpp
diff -u wesnoth/src/multiplayer_lobby.cpp:1.70
wesnoth/src/multiplayer_lobby.cpp:1.71
--- wesnoth/src/multiplayer_lobby.cpp:1.70 Wed Mar 23 19:41:09 2005
+++ wesnoth/src/multiplayer_lobby.cpp Sun May 8 00:45:26 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_lobby.cpp,v 1.70 2005/03/23 19:41:09 j_daniel Exp $ */
+/* $Id: multiplayer_lobby.cpp,v 1.71 2005/05/08 00:45:26 Sirp Exp $ */
/*
Copyright (C)
Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -127,8 +127,9 @@
if(game_strings.empty()) {
game_strings.push_back(_("<no games open>"));
}
-
- games_menu_.set_items(game_strings);
+
+ //set the items, retaining the menu positioning if possible
+ games_menu_.set_items(game_strings,true,true);
if(games_menu_.selection() >= 0 && games_menu_.selection() <
int(game_vacant_slots_.size())) {
wassert(game_vacant_slots_.size() == game_observers_.size());