added if for security

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