QTfrontend/newnetclient.cpp
changeset 3343 6289df7747c0
parent 3283 18ee933a5864
child 3344 b18a166e6ca4
equal deleted inserted replaced
3342:b4f01613dcd7 3343:6289df7747c0
   469 
   469 
   470     if (lst[0] == "ASKPASSWORD") {
   470     if (lst[0] == "ASKPASSWORD") {
   471         bool ok = false;
   471         bool ok = false;
   472         int passLength = config->value("net/passwordlength", 0).toInt();
   472         int passLength = config->value("net/passwordlength", 0).toInt();
   473         QString hash = config->value("net/passwordhash", "").toString();
   473         QString hash = config->value("net/passwordhash", "").toString();
   474         QString password = QInputDialog::getText(0, tr("Password"), tr("Your nickname %1 is\nregistered on Hedgewars.org\nPlease provide your password\nor pick another nickname:").arg(mynick), QLineEdit::Password, passLength==0?NULL:QString(passLength,'\0'), &ok);
   474         QString password = QInputDialog::getText(0, tr("Password"), tr("Your nickname %1 is\nregistered on Hedgewars.org\nPlease provide your password below\nor pick another nickname in game config:").arg(mynick), QLineEdit::Password, passLength==0?NULL:QString(passLength,'\0'), &ok);
   475         
   475         
   476         if (!ok) {
   476         if (!ok) {
   477             Disconnect();
   477             Disconnect();
   478             emit Disconnected();
   478             emit Disconnected();
   479             return;
   479             return;