equal
deleted
inserted
replaced
1670 } |
1670 } |
1671 return; |
1671 return; |
1672 } |
1672 } |
1673 if (pnetserver) |
1673 if (pnetserver) |
1674 return; // we have server - let it care of all things |
1674 return; // we have server - let it care of all things |
1675 if (hwnet) { |
1675 if (hwnet && (reason != "bye") && (!reason.startsWith("User quit: "))) |
|
1676 { |
1676 QString errorStr = QMessageBox::tr("The connection to the server is lost.") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Reason:") + "\n" + reason)); |
1677 QString errorStr = QMessageBox::tr("The connection to the server is lost.") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Reason:") + "\n" + reason)); |
1677 MessageDialog::ShowErrorMessage(errorStr, this); |
1678 MessageDialog::ShowErrorMessage(errorStr, this); |
1678 } |
1679 } |
1679 |
1680 |
1680 while (ui.Pages->currentIndex() != ID_PAGE_NET |
1681 while (ui.Pages->currentIndex() != ID_PAGE_NET |