QTfrontend/hwform.cpp
changeset 1593 3fdc92540cc8
parent 1592 5ee77ee470a6
child 1598 c853e02ed663
equal deleted inserted replaced
1592:5ee77ee470a6 1593:3fdc92540cc8
   432 		hwnet->Disconnect();
   432 		hwnet->Disconnect();
   433 		delete hwnet;
   433 		delete hwnet;
   434 		hwnet=0;
   434 		hwnet=0;
   435 	}
   435 	}
   436 	
   436 	
   437 	ui.pageNetGame->pChatWidget->clear();
       
   438 	ui.pageRoomsList->chatWidget->clear();
   437 	ui.pageRoomsList->chatWidget->clear();
   439 	
   438 	
   440 	hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget);
   439 	hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget);
   441 
   440 
   442 	connect(hwnet, SIGNAL(showMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   441 	connect(hwnet, SIGNAL(showMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   613 	GoToPage(ID_PAGE_ROOMSLIST);
   612 	GoToPage(ID_PAGE_ROOMSLIST);
   614 }
   613 }
   615 
   614 
   616 void HWForm::NetGameEnter()
   615 void HWForm::NetGameEnter()
   617 {
   616 {
       
   617 	ui.pageNetGame->pChatWidget->clear();
   618 	GoToPage(ID_PAGE_NETGAME);
   618 	GoToPage(ID_PAGE_NETGAME);
   619 }
   619 }
   620 
   620 
   621 void HWForm::AddNetTeam(const HWTeam& team)
   621 void HWForm::AddNetTeam(const HWTeam& team)
   622 {
   622 {