From 643fcaec036a5ca9a05511bc0ab9e2cf2a98b606 Mon Sep 17 00:00:00 2001 From: cristian64 Date: Fri, 20 Feb 2026 21:55:21 +0000 Subject: [PATCH] DolphinQt: Restore log font current index accurately. The logic in the code was deliberately avoiding index `2` (**Selected Font**; the debug font) by using `std::min(index, 1)`. Presumably, the reason was that there was no debugger in Qt version of Dolphin at the time. Test plan: - Select a debug font via the **Options > Font...** action. - Show the **Log** tab via the **View > Log** action. - In the **Log** tab, choose the **Selected Font** item in the combobox. - Restart Dolphin. **Without** the patch, the **Monospaced Font** item is wrongly selected in the combobox. **With** the patch, the **Selected Font** item is now properly restored from the saved settings, and the selected debug font is correctly used in the log messages. --- Source/Core/DolphinQt/Config/LogWidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Config/LogWidget.cpp b/Source/Core/DolphinQt/Config/LogWidget.cpp index d076b3a9ac..1b59411c08 100644 --- a/Source/Core/DolphinQt/Config/LogWidget.cpp +++ b/Source/Core/DolphinQt/Config/LogWidget.cpp @@ -182,8 +182,7 @@ void LogWidget::LoadSettings() Qt::ScrollBarAlwaysOn); // Log - Font Selection - // Currently "Debugger Font" is not supported as there is no Qt Debugger, defaulting to Monospace - m_log_font->setCurrentIndex(std::min(settings.value(QStringLiteral("logging/font")).toInt(), 1)); + m_log_font->setCurrentIndex(settings.value(QStringLiteral("logging/font")).toInt()); UpdateFont(); }