added if for security
This commit is contained in:
+6
-1
@@ -134,7 +134,12 @@ void WindowRace::ReturnPress(){
|
|||||||
//cout << "Return pressed" << endl;
|
//cout << "Return pressed" << endl;
|
||||||
if(this->ui->pBNextRace->isEnabled()){
|
if(this->ui->pBNextRace->isEnabled()){
|
||||||
this->prepareNextRace();
|
this->prepareNextRace();
|
||||||
this->wRennliste->changeSelection();
|
if(this->wRennlisteSeted){
|
||||||
|
this->wRennliste->changeSelection();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cout << "Problem with racelist" << endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(started){
|
if(started){
|
||||||
|
|||||||
Reference in New Issue
Block a user