Sat, 27 Mar 2021 09:49:00 +0100
Change code to give BackgroundService a 'parent'.
eric6/UI/UserInterface.py | file | annotate | diff | comparison | revisions | |
eric6/Utilities/BackgroundService.py | file | annotate | diff | comparison | revisions |
--- a/eric6/UI/UserInterface.py Wed Mar 24 19:49:58 2021 +0100 +++ b/eric6/UI/UserInterface.py Sat Mar 27 09:49:00 2021 +0100 @@ -269,7 +269,7 @@ # Create the background service object from Utilities.BackgroundService import BackgroundService - self.backgroundService = BackgroundService() + self.backgroundService = BackgroundService(self) splash.showMessage(self.tr("Initializing Plugin Manager..."))
--- a/eric6/Utilities/BackgroundService.py Wed Mar 24 19:49:58 2021 +0100 +++ b/eric6/Utilities/BackgroundService.py Sat Mar 27 09:49:00 2021 +0100 @@ -39,9 +39,12 @@ serviceNotAvailable = pyqtSignal(str, str, str, str) batchJobDone = pyqtSignal(str, str) - def __init__(self): + def __init__(self, parent=None): """ Constructor + + @param parent reference to the parent object + @type QObject """ self.processes = {} self.connections = {} @@ -50,7 +53,7 @@ self.__queue = [] self.services = {} - super(BackgroundService, self).__init__() + super(BackgroundService, self).__init__(parent) networkInterface = Preferences.getDebugger("NetworkInterface") if networkInterface == "all" or '.' in networkInterface: