QTfrontend/hwform.cpp
changeset 664 f0af2401f981
parent 661 0523b15353a2
child 665 5c7bfc8bac6a
equal deleted inserted replaced
663:d1982b62d52a 664:f0af2401f981
   342 	game->PlayDemo(curritem->data(Qt::UserRole).toString());
   342 	game->PlayDemo(curritem->data(Qt::UserRole).toString());
   343 }
   343 }
   344 
   344 
   345 void HWForm::NetConnectServer()
   345 void HWForm::NetConnectServer()
   346 {
   346 {
   347   QListWidgetItem * curritem = ui.pageNet->netServersWidget->serversList->currentItem();
   347 /*  QListWidgetItem * curritem = ui.pageNet->netServersWidget->serversList->currentItem();
   348   if (!curritem) {
   348   if (!curritem) {
   349     QMessageBox::critical(this,
   349     QMessageBox::critical(this,
   350 			  tr("Error"),
   350 			  tr("Error"),
   351 			  tr("Please, select server from the list above"),
   351 			  tr("Please, select server from the list above"),
   352 			  tr("OK"));
   352 			  tr("OK"));
   353     return ;
   353     return ;
   354   }
   354   }
   355   _NetConnect(curritem->text(), 46631, ui.pageOptions->editNetNick->text());
   355   _NetConnect(curritem->text(), 46631, ui.pageOptions->editNetNick->text());*/
   356 }
   356 }
   357 
   357 
   358 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
   358 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
   359 {
   359 {
   360 	if(hwnet) {
   360 	if(hwnet) {