X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Client%2Fresultdialog.cpp;h=37cf348f2f3fe1ea03817cb595493a7232e2f762;hb=aa40ce55230787b7a57cc0588cd7e56d30a89dd2;hp=38af4d23c6860865e92f2db1190740d49531a2d6;hpb=191e117d32d1e3e4865f51c84b3a2bbc565a49b3;p=speedfreak diff --git a/Client/resultdialog.cpp b/Client/resultdialog.cpp index 38af4d2..37cf348 100644 --- a/Client/resultdialog.cpp +++ b/Client/resultdialog.cpp @@ -69,6 +69,9 @@ ResultDialog::ResultDialog(QWidget *parent) : timeArray[i] = 0; } + //Clear info label + ui->labelInfoToUser->setText(""); + if (loginSaved()) { ui->pushButtonSend->setEnabled(true); @@ -76,6 +79,7 @@ ResultDialog::ResultDialog(QWidget *parent) : else { ui->pushButtonSend->setEnabled(false); + ui->labelInfoToUser->setText("You're not logged! Please register or log in and accelerate again."); } } @@ -311,6 +315,7 @@ void ResultDialog::on_pushButtonNew_clicked() } resultString = ""; this->close(); + emit rejected(); } /** @@ -320,7 +325,7 @@ void ResultDialog::on_pushButtonNew_clicked() */ void ResultDialog::on_pushButtonSend_clicked() { - //emit sendresult(); + ui->pushButtonSend->setEnabled(false); emit sendresult(timeArray[this->getTargetChoice()]); } @@ -755,3 +760,11 @@ void ResultDialog::setLabelInfoToUser(QString infoText) { this->ui->labelInfoToUser->setText(infoText); } + +/** + * This function enable send server button. + */ +void ResultDialog::setSendServerButtonEnabled() +{ + ui->pushButtonSend->setEnabled(true); +}