Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion preditor/gui/loggerwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,13 @@ def selectFont(

# Present a QFontDialog for user to choose a font
title = "Pick a {} font. Current font is: {}".format(kind, curFontFamily)
newFont, okClicked = QFontDialog.getFont(origFont, self, title, options=options)
fontReturn = QFontDialog.getFont(origFont, self, title, options=options)

# QFontDialog.getFont returns a different order for Qt5 vs Qt6
if isinstance(fontReturn[0], bool):
okClicked, newFont = fontReturn
else:
newFont, okClicked = fontReturn

if okClicked:
if doGui:
Expand Down