diff -r 169e65a6787c -r 418c2d9a767d eric6/MicroPython/ConnectionSelectionDialog.py --- a/eric6/MicroPython/ConnectionSelectionDialog.py Sat Feb 27 12:08:23 2021 +0100 +++ b/eric6/MicroPython/ConnectionSelectionDialog.py Sat Feb 27 16:57:26 2021 +0100 @@ -80,7 +80,19 @@ Private method to update the status of the OK button. """ self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( - bool(self.deviceTypeComboBox.currentData())) + bool(self.portNameComboBox.currentData(self.PortNameRole)) and + bool(self.deviceTypeComboBox.currentData()) + ) + + @pyqtSlot(str) + def on_portNameComboBox_currentTextChanged(self, txt): + """ + Private slot to handle the selection of a port name. + + @param txt selected port + @type str + """ + self.__updateOK() @pyqtSlot(str) def on_deviceTypeComboBox_currentTextChanged(self, txt):