# HG changeset patch # User unc0rr # Date 1251394381 0 # Node ID 0a61a3c2efc47485cc7f3744cce08df629aed3c7 # Parent 3cf9290a518ee77167e77ab6bbc99ee8fd060cb4 Change password dialog to be more informative diff -r 3cf9290a518e -r 0a61a3c2efc4 QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Thu Aug 27 17:26:21 2009 +0000 +++ b/QTfrontend/newnetclient.cpp Thu Aug 27 17:33:01 2009 +0000 @@ -454,8 +454,8 @@ if (lst[0] == "ASKPASSWORD") { int passLength = config->value("net/passwordlength", 0).toInt(); - QString hash = config->value("net/passwordhash", "").toString(); - QString password = QInputDialog::getText(0, tr("Password"), tr("Enter your password:"), QLineEdit::Password, passLength==0?NULL:QString(passLength,'\0')); + QString hash = config->value("net/passwordhash", "").toString(); + 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')); if (!passLength || password!=QString(passLength, '\0')) { hash = QCryptographicHash::hash(password.toLatin1(), QCryptographicHash::Md5).toHex();