eric6/MicroPython/ConnectionSelectionDialog.py

changeset 8139
418c2d9a767d
parent 8135
7cbb1ebf8d2d
child 8143
2c730d5fd177
--- 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):

eric ide

mercurial