allow dot in user
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 29 Jun 2008 08:06:21 +0000 (08:06 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 29 Jun 2008 08:06:21 +0000 (08:06 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@160 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/mainwindow.cpp
src/user.cpp

index 9d91fc7..95f2a24 100644 (file)
@@ -146,6 +146,7 @@ void MMainWindow::loadProfile()
        proxypass->setEnabled(useproxy->isChecked());
        username->setText(set.value("username").toString());
        password->setText("");
+       password->setFocus();
 }
 
 void MMainWindow::saveProfile()
index 53d9b90..f78429c 100644 (file)
@@ -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)