QTfrontend/newnetclient.cpp
changeset 5962 a5267091b205
parent 5959 2e5182c5617a
child 5998 e8f44e9433f0
equal deleted inserted replaced
5954:2aead3f940b0 5962:a5267091b205
   824     switch(n)
   824     switch(n)
   825     {
   825     {
   826         case 0:
   826         case 0:
   827         {
   827         {
   828             bool ok = false;
   828             bool ok = false;
   829             QString newNick = QInputDialog::getText(0, tr("Nickname"), tr("Some one already uses\n your nickname %1\non the server.\nPlease pick another nickname:").arg(mynick), QLineEdit::Normal, mynick, &ok);
   829             QString newNick = QInputDialog::getText(m_pGameCFGWidget, tr("Nickname"), tr("Some one already uses\n your nickname %1\non the server.\nPlease pick another nickname:").arg(mynick), QLineEdit::Normal, mynick, &ok);
   830 
   830 
   831             if (!ok || newNick.isEmpty()) {
   831             if (!ok || newNick.isEmpty()) {
   832                 Disconnect();
   832                 Disconnect();
   833                 emit Disconnected();
   833                 emit Disconnected();
   834                 return;
   834                 return;