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