From e593a7ecbb4e077598862777cce9ee785f21508a Mon Sep 17 00:00:00 2001 From: Tom Grundy Date: Sun, 3 Mar 2024 12:23:44 -0800 Subject: [PATCH] fix #734 easy fix - just do restore() (if needed) immediately after fontsChanged() --- radiolog.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/radiolog.py b/radiolog.py index 13d382b..47d60d2 100644 --- a/radiolog.py +++ b/radiolog.py @@ -1327,9 +1327,6 @@ def __init__(self,parent): # the same flags don't do the trick inside the QMessageBox constructor for whatever reason self.newEntryWindowHiddenPopup.setWindowFlags(Qt.Dialog|Qt.CustomizeWindowHint|Qt.WindowTitleHint|Qt.MSWindowsFixedSizeDialogHint|Qt.WindowStaysOnTopHint) - if restoreFlag: - self.restore() - # make sure x/y/w/h from resource file will fit on the available display d=QApplication.desktop() if (self.x+self.w > d.width()) or (self.y+self.h > d.height()): @@ -1348,6 +1345,10 @@ def __init__(self,parent): self.clueLogDialog.setGeometry(int(self.clueLog_x),int(self.clueLog_y),int(self.clueLog_w),int(self.clueLog_h)) self.fontsChanged() + #734 move restore to just after fontsChanged, which defines font size variables + if restoreFlag: + self.restore() + self.previousActiveWindowName='None' self.ui.timeoutLabel.setText("TIMEOUT:\n"+timeoutDisplayList[self.optionsDialog.ui.timeoutField.value()][0])