mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix: prevent segfault by closing the QCoreApplication, if any
This commit is contained in:
@ -115,6 +115,9 @@ class BECDispatcher:
|
||||
def reset_singleton(cls):
|
||||
cls._instance = None
|
||||
cls._initialized = False
|
||||
if cls.qapp:
|
||||
cls.qapp.exit()
|
||||
cls.qapp = None
|
||||
|
||||
def connect_slot(
|
||||
self, slot: Callable, topics: Union[EndpointInfo, str, list[Union[EndpointInfo, str]]]
|
||||
|
Reference in New Issue
Block a user