From: konrad Date: Sun, 29 Jun 2008 08:06:21 +0000 (+0000) Subject: allow dot in user X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c9b48e81a3a634f236eb8846a37e679d78251f80;p=web%2Fkonrad%2Fsmoke.git allow dot in user git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@160 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9d91fc7..95f2a24 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -146,6 +146,7 @@ void MMainWindow::loadProfile() proxypass->setEnabled(useproxy->isChecked()); username->setText(set.value("username").toString()); password->setText(""); + password->setFocus(); } void MMainWindow::saveProfile() diff --git a/src/user.cpp b/src/user.cpp index 53d9b90..f78429c 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -54,7 +54,7 @@ QString MUser::description() bool MUser::isValid() { - return QRegExp("[A-Za-z0-9_]+").exactMatch(m_userid); + return QRegExp("[A-Za-z0-9_\\.]+").exactMatch(m_userid); } bool MUser::create(QString pwd)