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