summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcristian64 <cristian64@gmail.com>2026-02-20 21:55:21 +0000
committercristian64 <cristian64@gmail.com>2026-02-20 22:14:35 +0000
commit643fcaec036a5ca9a05511bc0ab9e2cf2a98b606 (patch)
tree40f41fb07c445a03d34d4843b72bcf852a5220a0
parent981b7df4203d2907278506f4115a3604d7422fbb (diff)
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.
-rw-r--r--Source/Core/DolphinQt/Config/LogWidget.cpp3
1 files changed, 1 insertions, 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();
}