fix return shortcut in racewindow
This commit is contained in:
@@ -21,6 +21,8 @@ WindowRace::WindowRace(DataBase *db, QWidget *parent) :
|
||||
this->ui->pBNextRace->setEnabled(false);
|
||||
this->finished = false;
|
||||
|
||||
this->wRennlisteSeted = false;
|
||||
|
||||
|
||||
this->db = db;
|
||||
|
||||
@@ -132,6 +134,7 @@ void WindowRace::ReturnPress(){
|
||||
//cout << "Return pressed" << endl;
|
||||
if(this->ui->pBNextRace->isEnabled()){
|
||||
this->prepareNextRace();
|
||||
this->wRennliste->changeSelection();
|
||||
}
|
||||
else{
|
||||
if(started){
|
||||
@@ -208,7 +211,9 @@ void WindowRace::stopClicked(){
|
||||
}
|
||||
|
||||
void WindowRace::setWindowRennliste(WindowRennliste *ptrInstance){
|
||||
|
||||
this->wRennliste = ptrInstance;
|
||||
this->wRennlisteSeted = true;
|
||||
QObject::connect(this->ui->pBNextRace, SIGNAL(clicked()), this->wRennliste, SLOT(changeSelection()));
|
||||
}
|
||||
void WindowRace::setDriverAndCarId(vector<QString> vec){
|
||||
|
||||
@@ -55,6 +55,7 @@ private:
|
||||
DataBase *db;
|
||||
bool finished;
|
||||
WindowRennliste *wRennliste;
|
||||
bool wRennlisteSeted;
|
||||
int fahrzeit;
|
||||
int renn_id;
|
||||
int minimumTime;
|
||||
|
||||
Reference in New Issue
Block a user