QTfrontend/hwform.cpp
changeset 4536 11bd8c7e4118
parent 4535 301df2c84b97
child 4560 5d6c7f88db73
equal deleted inserted replaced
4535:301df2c84b97 4536:11bd8c7e4118
   895 
   895 
   896 void HWForm::ForcedDisconnect()
   896 void HWForm::ForcedDisconnect()
   897 {
   897 {
   898     if(pnetserver) return; // we have server - let it care of all things
   898     if(pnetserver) return; // we have server - let it care of all things
   899     if (hwnet) {
   899     if (hwnet) {
   900         hwnet->deleteLater();
   900         HWNewNet * tmp = hwnet;
   901         hwnet = 0;
   901         hwnet = 0;
       
   902         tmp->deleteLater();
   902         QMessageBox::warning(this, QMessageBox::tr("Network"),
   903         QMessageBox::warning(this, QMessageBox::tr("Network"),
   903                 QMessageBox::tr("Connection to server is lost"));
   904                 QMessageBox::tr("Connection to server is lost"));
   904 
   905 
   905     }
   906     }
   906     if (ui.Pages->currentIndex() != ID_PAGE_NET) GoBack();
   907     if (ui.Pages->currentIndex() != ID_PAGE_NET) GoBack();