Commits

Yuya Nishihara committed 747bfe3

settings: call static getFont() without dummy instance

Because getFont is static member of QFontDialog, dlg is actually unused
except for name resolution.

  • Participants
  • Parent commits 1a5ee1c
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/settings.py

         origfont = self.currentFont() or thgf.font()
         dlg = QFontDialog(self)
         dlg.currentFontChanged.connect(newFont)
-        font, isok = dlg.getFont(origfont, self)
+        font, isok = QFontDialog.getFont(origfont, self)
         if not isok:
             return
         self.label.setText(font.toString())