X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=Client%2Fsettingsdialog.cpp;h=8e96b2fee25bc61afa398eb247f622d9cfc83ecb;hb=e753d97cfeafbe574fbd6f51c4f06dfebd0141e4;hp=fb5d7c075550f43be7159cbcfc23195bd9ea800a;hpb=a170a29f6d479941ca3535162cef78a39909762c;p=speedfreak 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 }