equal
deleted
inserted
replaced
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) { |