X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fcarmainwindow.cpp;h=10affdac2b451d8497704950d603ee5f1172deb5;hp=b8af9feb8218412e04e48d635edd53e063331c28;hb=379539e5d2493cc3619586ccfc9836e0c1bb3f50;hpb=50bfecc3157564ea63ca2061127ef2e451c4e3b1 diff --git a/Client/carmainwindow.cpp b/Client/carmainwindow.cpp index b8af9fe..10affda 100644 --- a/Client/carmainwindow.cpp +++ b/Client/carmainwindow.cpp @@ -66,15 +66,12 @@ void CarMainWindow::on_listView_clicked(QModelIndex index) */ void CarMainWindow::on_autoStartButton_clicked() { - if(measure) - { - delete measure; - measure = NULL; - measure = new MeasureDialog(); - } - connect(measure, SIGNAL(speedAchieved()), this, SLOT(openResultView())); + delete measure; + measure = NULL; + measure = new MeasureDialog(); + connect(measure, SIGNAL(speedAchieved()), this, SLOT(openResultView())); // Show measure dialog. measure->show(); } @@ -165,6 +162,7 @@ void CarMainWindow::on_comboBoxTopCategory_activated(QString category) */ void CarMainWindow::openResultView() { + result->saveMeasuresToArray(measure->measures); // Show result dialog. result->show(); }