From c9b48e81a3a634f236eb8846a37e679d78251f80 Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 29 Jun 2008 08:06:21 +0000 Subject: [PATCH] allow dot in user git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@160 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/mainwindow.cpp | 1 + src/user.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) 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) -- 1.7.2.5