added if for security

This commit is contained in:
2014-12-25 22:02:34 +01:00
parent 4fe9b0449c
commit e477855e08
+5
View File
@@ -134,8 +134,13 @@ void WindowRace::ReturnPress(){
//cout << "Return pressed" << endl;
if(this->ui->pBNextRace->isEnabled()){
this->prepareNextRace();
if(this->wRennlisteSeted){
this->wRennliste->changeSelection();
}
else{
cout << "Problem with racelist" << endl;
}
}
else{
if(started){
this->breakCounter();