Skip to content

Commit 7e1f560

Browse files
committed
Repair #223
This was undone in a recent pull request for reasons I cannot fathom. Thanks @mnemyx for reporting, e2e4c42#commitcomment-23542477
1 parent fd93c1f commit 7e1f560

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Qt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,8 @@ def _install():
12371237
setattr(our_submodule, member, their_member)
12381238

12391239
# Backwards compatibility
1240-
Qt.QtCompat.load_ui = Qt.QtCompat.loadUi
1240+
if hasattr(Qt.QtCompat, 'loadUi'):
1241+
Qt.QtCompat.load_ui = Qt.QtCompat.loadUi
12411242

12421243

12431244
_install()

0 commit comments

Comments
 (0)