restrict PyQt6 QEvent.type() monkey patching to 6.0.0
The bug that this workaround was for has been fixed in PyQt6 6.0.1. However our feature test for the bug was faulty and triggers positive for PyQt6 6.0.1. In other words, we would be needlessly monkey patching where it wasn't needed.
This commit is contained in:
parent
6d3de52773
commit
d5e516ad52
@ -387,10 +387,7 @@ if QT_LIB == PYQT6:
|
||||
|
||||
# PyQt6 6.0.0 has a bug where it can't handle certain Type values returned
|
||||
# by the Qt library.
|
||||
try:
|
||||
# 213 is a known failing value
|
||||
QtCore.QEvent.Type(213)
|
||||
except ValueError:
|
||||
if QtCore.PYQT_VERSION == 0x60000:
|
||||
def new_method(self, old_method=QtCore.QEvent.type):
|
||||
try:
|
||||
typ = old_method(self)
|
||||
|
Loading…
Reference in New Issue
Block a user