Skip to content

Commit 52d8a0c

Browse files
authored
Update __init__.py
1 parent bae9d60 commit 52d8a0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qasync/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def wrapper(*args, **kwargs):
796796

797797
class QEventLoopPolicyMixin:
798798
def new_event_loop(self):
799-
return QEventLoop(QApplication(sys.argv))
799+
return QEventLoop(QApplication.instance() or QApplication(sys.argv))
800800

801801

802802
class DefaultQEventLoopPolicy(

0 commit comments

Comments
 (0)