more userfriendly: preselect password line after loading profile
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 29 Jun 2008 08:06:01 +0000 (08:06 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 29 Jun 2008 08:06:01 +0000 (08:06 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@159 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/overview.cpp

index dca21d8..f90b94b 100644 (file)
@@ -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