From 12c1b4d9768c76d829404e7b881261e05658c134 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sat, 13 Jul 2024 14:28:06 +0200 Subject: [PATCH] Fixed background color of the Super Hound label not always being reset correctly. --- widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index a11b67fc0..6ec07e620 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4177,7 +4177,7 @@ void MainWindow::readFromStdout() //readFromStdout verified = true; ui->labDXped->setStyleSheet("QLabel {background-color: #00ff00; color: black;}"); } else { - if (decodedtext0.mid(5,2).contains("00") or decodedtext0.mid(5,2).contains("30")) verified = false; + if (decodedtext0.mid(4,2).contains("00") or decodedtext0.mid(4,2).contains("30")) verified = false; } if ((!verified && ui->labDXped->isVisible()) or ui->labDXped->text()!="Super Hound") ui->labDXped->setStyleSheet("QLabel {background-color: red; color: white;}");