if(!accstart)
accstart = new accelerationstart(this);
connect(accstart, SIGNAL(sendresult(QString, double)), this, SLOT(clientSendResult(QString, double)));
- connect(topResultDialog, SIGNAL(rejected()), this, SLOT(killDialog()));
+ connect(accstart, SIGNAL(rejected()), this, SLOT(killDialog()));
accstart->show();
}
timeArray[i] = 0;
}
+ //Clear info label
+ ui->labelInfoToUser->setText("");
+
if (loginSaved())
{
ui->pushButtonSend->setEnabled(true);
else
{
ui->pushButtonSend->setEnabled(false);
+ ui->labelInfoToUser->setText("You're not logged! Please register or log in and accelerate again.");
}
-
- //Clear info label
- ui->labelInfoToUser->setText("");
}
/**
ui->setUserPushButton->setText("Log in");
ui->setUserUsernameLineEdit->clear();
ui->setUserPasswordLineEdit->clear();
+ this->username = ui->setUserUsernameLineEdit->text();
+ this->password = ui->setUserPasswordLineEdit->text();
+ saveLogin( this->username, this->password);
}
}