fixed some heavy pointermistakes
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include "unistd.h"
|
||||
|
||||
using std::vector;
|
||||
using std::string;
|
||||
@@ -175,8 +176,8 @@ void WindowRace::setDriverAndCarId(vector<QString> vec){
|
||||
}
|
||||
void WindowRace::closeEvent(QCloseEvent *event){
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText("The document has been modified.");
|
||||
msgBox.setInformativeText("Do you want to save your changes?");
|
||||
msgBox.setText("Wirklich schliessen?");
|
||||
msgBox.setInformativeText("");
|
||||
msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
|
||||
msgBox.setDefaultButton(QMessageBox::Save);
|
||||
int ret = msgBox.exec();
|
||||
@@ -235,6 +236,15 @@ void WindowRace::countdownUpdate(){
|
||||
|
||||
WindowRace::~WindowRace()
|
||||
{
|
||||
this->startAmpelThread->setStop();
|
||||
this->countdown->setStop();
|
||||
this->Hardware->setStop();
|
||||
usleep(1000010); //eine Sekunde
|
||||
|
||||
delete this->countdown;
|
||||
delete this->Hardware;
|
||||
delete this->startAmpelThread;
|
||||
|
||||
delete ui;
|
||||
}
|
||||
void WindowRace::shellSlot(){
|
||||
@@ -362,5 +372,4 @@ void WindowRace::ampelSlot(){
|
||||
|
||||
void WindowRace::go(){
|
||||
startAmpelThread->start();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user