From 7e1f560504ed61051f45066f06f5cd0c89b12705 Mon Sep 17 00:00:00 2001 From: Marcus Ottosson Date: Wed, 9 Aug 2017 07:35:06 +0100 Subject: [PATCH] Repair #223 This was undone in a recent pull request for reasons I cannot fathom. Thanks @mnemyx for reporting, https://github.com/mottosso/Qt.py/commit/e2e4c423cca32a6d1dbcc56b7965faf142fa1182#commitcomment-23542477 --- Qt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Qt.py b/Qt.py index 6777c8b5..9d977e48 100644 --- a/Qt.py +++ b/Qt.py @@ -1237,7 +1237,8 @@ def _install(): setattr(our_submodule, member, their_member) # Backwards compatibility - Qt.QtCompat.load_ui = Qt.QtCompat.loadUi + if hasattr(Qt.QtCompat, 'loadUi'): + Qt.QtCompat.load_ui = Qt.QtCompat.loadUi _install()