QTfrontend/hwform.cpp
changeset 7803 7c4d83f8ac23
parent 7802 c7f5c3bd7f8c
child 7823 46f115569045
equal deleted inserted replaced
7802:c7f5c3bd7f8c 7803:7c4d83f8ac23
  1284     {
  1284     {
  1285         QString errorStr = QMessageBox::tr("Connection to server is lost") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Quit reason: ") + '"' + reason +'"'));
  1285         QString errorStr = QMessageBox::tr("Connection to server is lost") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Quit reason: ") + '"' + reason +'"'));
  1286         ShowErrorMessage(errorStr);
  1286         ShowErrorMessage(errorStr);
  1287     }
  1287     }
  1288     if (ui.Pages->currentIndex() != ID_PAGE_NET)
  1288     if (ui.Pages->currentIndex() != ID_PAGE_NET)
       
  1289     {
       
  1290         while (!PagesStack.isEmpty()) PagesStack.pop();
       
  1291         PagesStack.push(ID_PAGE_MAIN);
  1289         GoToPage(ID_PAGE_NET);
  1292         GoToPage(ID_PAGE_NET);
       
  1293     }
  1290 }
  1294 }
  1291 
  1295 
  1292 void HWForm::NetConnected()
  1296 void HWForm::NetConnected()
  1293 {
  1297 {
  1294     GoToPage(ID_PAGE_ROOMSLIST);
  1298     GoToPage(ID_PAGE_ROOMSLIST);