From: Janne Änäkkälä Date: Wed, 21 Apr 2010 11:56:03 +0000 (+0300) Subject: Bug fixed. Now user can't send register request if one or more of the registration... X-Git-Tag: help~7 X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=e753d97cfeafbe574fbd6f51c4f06dfebd0141e4;hp=a170a29f6d479941ca3535162cef78a39909762c Bug fixed. Now user can't send register request if one or more of the registration fields is empty. --- diff --git a/Client/settingsdialog.cpp b/Client/settingsdialog.cpp index fb5d7c0..8e96b2f 100644 --- a/Client/settingsdialog.cpp +++ b/Client/settingsdialog.cpp @@ -62,7 +62,15 @@ void SettingsDialog::on_registratePushButton_clicked() this->regPassword = ui->regPasswordLineEdit->text(); this->regEmail = ui->regEMailLineEdit->text(); - emit sendregistration(); + if (this->regUsername.compare("") && this->regPassword.compare("") && this->regEmail.compare("") && this->regEmail.compare("@")) + { + emit sendregistration(); + + } + else + { + QMessageBox::about(this, "One or more of the fields is empty", "Set username (3-12 characters), password (at least 6 characters) and valid email address"); + } //close(); //using close() hides popup-window which reports error from server }