QTfrontend/hwform.cpp
changeset 6227 ce60b734fff1
parent 6225 505643d4c23d
child 6428 2d2b5e3c59a7
equal deleted inserted replaced
6225:505643d4c23d 6227:ce60b734fff1
   753     }
   753     }
   754 
   754 
   755     hwnet->NewNick(newNick);
   755     hwnet->NewNick(newNick);
   756     config->setValue("net/nick", newNick);
   756     config->setValue("net/nick", newNick);
   757     config->updNetNick();
   757     config->updNetNick();
       
   758 
       
   759     ui.pageRoomsList->setUser(nick);
       
   760     ui.pageNetGame->setUser(nick);
   758 }
   761 }
   759 
   762 
   760 void HWForm::NetAuthFailed()
   763 void HWForm::NetAuthFailed()
   761 {
   764 {
   762     // Set the password blank if case the user tries to join and enter his password again
   765     // Set the password blank if case the user tries to join and enter his password again
   797     if(hwnet) {
   800     if(hwnet) {
   798         hwnet->Disconnect();
   801         hwnet->Disconnect();
   799         delete hwnet;
   802         delete hwnet;
   800         hwnet=0;
   803         hwnet=0;
   801     }
   804     }
   802 
       
   803     ui.pageRoomsList->chatWidget->clear();
       
   804 
   805 
   805     hwnet = new HWNewNet();
   806     hwnet = new HWNewNet();
   806 
   807 
   807     GoToPage(ID_PAGE_CONNECTING);
   808     GoToPage(ID_PAGE_CONNECTING);
   808 
   809 
   937                  QLineEdit::Normal,
   938                  QLineEdit::Normal,
   938                  QDir::home().dirName());
   939                  QDir::home().dirName());
   939         config->setValue("net/nick",nick);
   940         config->setValue("net/nick",nick);
   940         config->updNetNick();
   941         config->updNetNick();
   941     }
   942     }
       
   943 
       
   944     ui.pageRoomsList->setUser(nick);
       
   945     ui.pageNetGame->setUser(nick);
       
   946 
   942     hwnet->Connect(hostName, port, nick);
   947     hwnet->Connect(hostName, port, nick);
   943 }
   948 }
   944 
   949 
   945 void HWForm::NetConnect()
   950 void HWForm::NetConnect()
   946 {
   951 {