diff --git a/app/gui/oven_control/washwindow.cpp b/app/gui/oven_control/washwindow.cpp index 6debea0..1428777 100644 --- a/app/gui/oven_control/washwindow.cpp +++ b/app/gui/oven_control/washwindow.cpp @@ -61,7 +61,8 @@ WashWindow::WashWindow(QWidget *parent) : setFocus(); - if (OvenStatistics::getInstance()->loadWashState()) + OvenStatistics *os = OvenStatistics::getInstance(); + if (os->loadWashState()) { // Start Cleaning Steam Generator state = RequestClean; @@ -86,6 +87,8 @@ WashWindow::WashWindow(QWidget *parent) : ui->upperStack->setCurrentIndex(1); } + + connect(os, SIGNAL(stopClean()), SLOT(stop())); } WashWindow::~WashWindow()