QTfrontend/net/newnetclient.cpp
changeset 6732 c906dc78091f
parent 6722 e3a35bc838fb
child 6733 5abbc345a82f
--- a/QTfrontend/net/newnetclient.cpp	Wed Feb 22 18:13:14 2012 +0100
+++ b/QTfrontend/net/newnetclient.cpp	Thu Feb 23 00:46:03 2012 +0400
@@ -25,6 +25,7 @@
 #include "newnetclient.h"
 #include "proto.h"
 #include "game.h"
+#include "roomslistmodel.h"
 
 char delimeter='\n';
 
@@ -34,6 +35,7 @@
     loginStep(0),
     netClientState(Disconnected)
 {
+    m_roomsListModel = new RoomsListModel(this);
 // socket stuff
     connect(&NetSocket, SIGNAL(readyRead()), this, SLOT(ClientRead()));
     connect(&NetSocket, SIGNAL(connected()), this, SLOT(OnConnect()));
@@ -831,3 +833,8 @@
         }
     }
 }
+
+RoomsListModel * HWNewNet::roomsListModel()
+{
+    return m_roomsListModel;
+}