QTfrontend/hwform.cpp
changeset 13673 1aa5e884326a
parent 13657 2d38dc2d3414
child 13689 27e5e311c7a3
equal deleted inserted replaced
13671:7a31a292fa84 13673:1aa5e884326a
  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