diff --git a/app/gui/oven_control/autocookconfigwindow.cpp b/app/gui/oven_control/autocookconfigwindow.cpp index 2ab0fba..13e5f3a 100644 --- a/app/gui/oven_control/autocookconfigwindow.cpp +++ b/app/gui/oven_control/autocookconfigwindow.cpp @@ -202,7 +202,7 @@ void AutoCookConfigWindow::start() w->showFullScreen(); w->raise(); - connect(w, SIGNAL(destroyed(QObject*)), SLOT(startTimer())); + connect(w, SIGNAL(back()), SLOT(startTimer())); } void AutoCookConfigWindow::addFavorite() diff --git a/app/gui/oven_control/autocookwindow.cpp b/app/gui/oven_control/autocookwindow.cpp index b0bbfa5..8317691 100644 --- a/app/gui/oven_control/autocookwindow.cpp +++ b/app/gui/oven_control/autocookwindow.cpp @@ -774,6 +774,7 @@ void AutoCookWindow::on_showNextStepButton_clicked() void AutoCookWindow::on_backButton_clicked() { Oven::getInstance()->stop(); + emit back(); close(); } diff --git a/app/gui/oven_control/autocookwindow.h b/app/gui/oven_control/autocookwindow.h index 56d01ed..d599990 100644 --- a/app/gui/oven_control/autocookwindow.h +++ b/app/gui/oven_control/autocookwindow.h @@ -85,6 +85,9 @@ private slots: void on_configButton_clicked(); void on_washButton_clicked(); void on_helpButton_clicked(); + +signals: + void back(); }; #endif // AUTOCOOKWINDOW_H