mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-22 10:03:35 -04:00
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.