Skip to content

Commit 267b226

Browse files
authored
Fix wrong settings key reading errorCharsRate as warnCharsRate (#388)
m_errorCharsRate was reading the "warnCharsRate" settings key instead of "errorCharsRate", causing both thresholds to silently share the same value after a restart.
1 parent 95f6302 commit 267b226

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ void MainWindow::showEvent(QShowEvent *) {
473473

474474
settings.beginGroup("AdvancedOptions");
475475
m_warnCharsRate = settings.value("warnCharsRate", 14).toInt();
476-
m_errorCharsRate = settings.value("warnCharsRate", 18).toInt();
476+
m_errorCharsRate = settings.value("errorCharsRate", 18).toInt();
477477
m_charsRate = settings.value("charsRate", 12).toInt();
478478
m_subtitleInterval = settings.value("subtitleInterval", 1000).toInt();
479479
m_subtitleMinDuration = settings.value("subtitleMinDuration", 1000).toInt();

0 commit comments

Comments
 (0)