From 79cba80edd8da1b49f01555e2918d6ff2961d63d Mon Sep 17 00:00:00 2001 From: Stacey Oue Date: Fri, 15 Nov 2024 11:26:01 -0500 Subject: [PATCH] Ensure that the qt app is exited on clean up. This will trigger engine shutdown as well. (#202) --- python/tk_alias/shotgrid_alias_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/tk_alias/shotgrid_alias_client.py b/python/tk_alias/shotgrid_alias_client.py index 0ed89877..bc177a4c 100644 --- a/python/tk_alias/shotgrid_alias_client.py +++ b/python/tk_alias/shotgrid_alias_client.py @@ -49,6 +49,8 @@ def cleanup(self): """Clean up the client on disconnect.""" super(ShotGridAliasSocketIoClient, self).cleanup() + if self.__qt_app: + self.engine.execute_in_main_thread(self.__qt_app.quit) self.__qt_app = None def _process_events(self):