From 2487da768fc41834ee8160d301ec73ab8313f5d3 Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Sun, 8 Mar 2026 18:19:44 +0100 Subject: [PATCH] Fix wrong settings key reading errorCharsRate as warnCharsRate m_errorCharsRate was reading the "warnCharsRate" settings key instead of "errorCharsRate", causing both thresholds to silently share the same value after a restart. --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ee60cb2..2d1c893 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -473,7 +473,7 @@ void MainWindow::showEvent(QShowEvent *) { settings.beginGroup("AdvancedOptions"); m_warnCharsRate = settings.value("warnCharsRate", 14).toInt(); - m_errorCharsRate = settings.value("warnCharsRate", 18).toInt(); + m_errorCharsRate = settings.value("errorCharsRate", 18).toInt(); m_charsRate = settings.value("charsRate", 12).toInt(); m_subtitleInterval = settings.value("subtitleInterval", 1000).toInt(); m_subtitleMinDuration = settings.value("subtitleMinDuration", 1000).toInt();