CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <[EMAIL PROTECTED]> 04/10/31 22:23:43
Modified files:
src/widgets : combo.cpp
Log message:
When selecting faction, the leader should get visibly modified. Do it
by deselecting on option list change.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/combo.cpp.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
Patches:
Index: wesnoth/src/widgets/combo.cpp
diff -u wesnoth/src/widgets/combo.cpp:1.23 wesnoth/src/widgets/combo.cpp:1.24
--- wesnoth/src/widgets/combo.cpp:1.23 Sun Oct 31 20:50:13 2004
+++ wesnoth/src/widgets/combo.cpp Sun Oct 31 22:23:43 2004
@@ -1,4 +1,4 @@
-/* $Id: combo.cpp,v 1.23 2004/10/31 20:50:13 silene Exp $ */
+/* $Id: combo.cpp,v 1.24 2004/10/31 22:23:43 silene Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -45,6 +45,7 @@
void combo::set_items(const std::vector<std::string>& items)
{
items_ = items;
+ selected_ = -1;
}
void combo::set_selected(int val)