diff --git a/app/gui/oven_control/manualcookwindow.cpp b/app/gui/oven_control/manualcookwindow.cpp index 3204207..a8a6a1a 100644 --- a/app/gui/oven_control/manualcookwindow.cpp +++ b/app/gui/oven_control/manualcookwindow.cpp @@ -36,6 +36,7 @@ ManualCookWindow::ManualCookWindow(QWidget *parent, Oven *oven, UdpHandler *udp) connect(ui->timeSlider, SIGNAL(sliderMoved(int)), this, SLOT(updateLabels())); connect(ui->interTempSlider, SIGNAL(sliderMoved(int)), this, SLOT(updateLabels())); connect(ui->innerInterTempSlider, SIGNAL(sliderMoved(int)), this, SLOT(updateLabels())); + connect(ui->innerInterTempSlider, SIGNAL(valueChanged(int)), this, SLOT(updateLabels())); QTimer *cookingTimerCheckTimer = new QTimer(this); cookingTimerCheckTimer->setInterval(100); @@ -176,11 +177,11 @@ void ManualCookWindow::updateLabels() else ui->interTempLabel->setText("ā„ƒ"); - int innerInterTemp; - if (ui->innerInterTempSlider->isSliderDown()) - innerInterTemp = ui->innerInterTempSlider->sliderPosition(); - else - innerInterTemp = oven->interTemp(); + int innerInterTemp = ui->innerInterTempSlider->sliderPosition(); +// if (ui->innerInterTempSlider->isSliderDown()) +// innerInterTemp = ui->innerInterTempSlider->sliderPosition(); +// else +// innerInterTemp = oven->interTemp(); ui->innerInterTempLabel->setText(buf.sprintf("%dā„ƒ", innerInterTemp));