mail[Wesnoth-commits] r36648 - /trunk/src/gui/dialogs/lobby_main.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kailoran on July 06, 2009 - 10:03:
Author: ilor
Date: Mon Jul  6 10:03:05 2009
New Revision: 36648

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36648&view=rev
Log:
use the (stub atm) listbox row removal function in the new lobby

Modified:
    trunk/src/gui/dialogs/lobby_main.cpp

Modified: trunk/src/gui/dialogs/lobby_main.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/lobby_main.cpp?rev=36648&r1=36647&r2=36648&view=diff
==============================================================================
--- trunk/src/gui/dialogs/lobby_main.cpp (original)
+++ trunk/src/gui/dialogs/lobby_main.cpp Mon Jul  6 10:03:05 2009
@@ -101,6 +101,7 @@
 
 void tlobby_main::update_gamelist()
 {
+       gamelistbox_->remove_all_rows();
        foreach (const game_info &game, lobby_info_.games())
        {
                std::map<std::string, string_map> data;
@@ -128,6 +129,9 @@
                        grid->find_widget("observe", false));
                observe_button->set_callback_mouse_left_click(
                        dialog_callback<tlobby_main, 
&tlobby_main::observe_button_callback>);
+       }
+       for (size_t i = 0; i < userlistbox_->get_item_count(); ++i) {
+               userlistbox_->remove_row(0);
        }
        foreach (const user_info& user, lobby_info_.users())
        {




Related Messages


Powered by MHonArc, Updated Mon Jul 06 10:20:29 2009