From: konrad Date: Sun, 29 Jun 2008 08:06:01 +0000 (+0000) Subject: more userfriendly: preselect password line after loading profile X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=16b0aebbe6b7bc4da630fb0bd5e10cccc2045029;p=web%2Fkonrad%2Fsmoke.git more userfriendly: preselect password line after loading profile git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@159 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/overview.cpp b/src/overview.cpp index dca21d8..f90b94b 100644 --- a/src/overview.cpp +++ b/src/overview.cpp @@ -408,9 +408,9 @@ void MOverview::newUser() name=QInputDialog::getText(this,tr("New User"),tr("Please enter new user name (only letters, digits, and underscore allowed):"),QLineEdit::Normal,name,&ok); if(!ok) return; - if(QRegExp("[A-Za-z0-9_]+").exactMatch(name)) + if(QRegExp("[A-Za-z0-9_\\.]+").exactMatch(name)) break; - if(QMessageBox::warning(this,tr("Error"),tr("The user name must contain only letters, digits, and underscores and must be at least one character long!"),QMessageBox::Retry|QMessageBox::Abort)!=QMessageBox::Retry) + if(QMessageBox::warning(this,tr("Error"),tr("The user name must contain only letters, digits, dots and underscores and must be at least one character long!"),QMessageBox::Retry|QMessageBox::Abort)!=QMessageBox::Retry) return; } //get password