1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed e24f374

settings: specify parent of QIntValidator explicitly (CentOs 6.3)

  • Participants
  • Parent commits 4115e3a
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/settings.py

View file
  • Ignore whitespace
 def genIntEditCombo(opts):
     'EditCombo, only allows integer values'
     opts['canedit'] = True
-    opts['validator'] = QIntValidator()
+    opts['validator'] = QIntValidator(None)  # missing parent=None on PyQt4.6
     return SettingsCombo(**opts)
 
 def genLineEditBox(opts):