QTfrontend/ui/page/pagenet.cpp
changeset 7794 ab7b94c03bc9
parent 6952 7f70f37bbf08
child 8636 fa8cd97a0a09
equal deleted inserted replaced
7793:3c21da93db9f 7794:ab7b94c03bc9
   106 {
   106 {
   107     HWNetServersModel * model = static_cast<HWNetServersModel *>(tvServersList->model());
   107     HWNetServersModel * model = static_cast<HWNetServersModel *>(tvServersList->model());
   108     QModelIndex mi = tvServersList->currentIndex();
   108     QModelIndex mi = tvServersList->currentIndex();
   109     if(!mi.isValid())
   109     if(!mi.isValid())
   110     {
   110     {
   111         QMessageBox::information(this, tr("Error"), tr("Please select server from the list above"));
   111         QMessageBox serverMsg(this);
       
   112         serverMsg.setIcon(QMessageBox::Warning);
       
   113         serverMsg.setWindowTitle(QMessageBox::tr("Netgame - Error"));
       
   114         serverMsg.setText(QMessageBox::tr("Please select a server from the list"));
       
   115         serverMsg.setWindowModality(Qt::WindowModal);
       
   116         serverMsg.exec();
   112         return;
   117         return;
   113     }
   118     }
   114     QString host = model->index(mi.row(), 1).data().toString();
   119     QString host = model->index(mi.row(), 1).data().toString();
   115     quint16 port = model->index(mi.row(), 2).data().toUInt();
   120     quint16 port = model->index(mi.row(), 2).data().toUInt();
   116 
   121