diff -r ce3bcd9df3b3 -r 0e220c26e60e src/eric7/MicroPython/EthernetDialogs/EthernetController.py --- a/src/eric7/MicroPython/EthernetDialogs/EthernetController.py Tue May 06 11:09:21 2025 +0200 +++ b/src/eric7/MicroPython/EthernetDialogs/EthernetController.py Tue May 06 15:32:29 2025 +0200 @@ -31,6 +31,7 @@ super().__init__(parent) self.__mpy = microPython + self.__mpy.disconnected.connect(self.__disconnectedFromDevice) self.__ethernetStatusDialog = None @@ -77,6 +78,15 @@ return ethernetMenu @pyqtSlot() + def __disconnectedFromDevice(self): + """ + Private slot handling disconnection from a device. + """ + if self.__ethernetStatusDialog is not None: + self.__ethernetStatusDialog.deleteLater() + self.__ethernetStatusDialog = None + + @pyqtSlot() def __showEthernetStatus(self): """ Private slot to show a dialog with the WiFi status of the current device.