VirtualenvConfigurationDialog: fixed an issue causing the OK button not being enabled if the name of the virtual environment was changed second.

Sun, 08 Nov 2020 16:00:57 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 08 Nov 2020 16:00:57 +0100
changeset 7827
3d42837a8b66
parent 7826
704c46e040a2
child 7828
4588940a2c19

VirtualenvConfigurationDialog: fixed an issue causing the OK button not being enabled if the name of the virtual environment was changed second.

eric6/VirtualEnv/VirtualenvConfigurationDialog.py file | annotate | diff | comparison | revisions
--- a/eric6/VirtualEnv/VirtualenvConfigurationDialog.py	Sun Nov 08 11:42:46 2020 +0100
+++ b/eric6/VirtualEnv/VirtualenvConfigurationDialog.py	Sun Nov 08 16:00:57 2020 +0100
@@ -171,6 +171,16 @@
             self.venvStack.setCurrentWidget(self.venvPage)
     
     @pyqtSlot(str)
+    def on_nameEdit_textChanged(self, txt):
+        """
+        Private slot handling a change of the virtual environment name.
+        
+        @param txt name of the virtual environment
+        @type str
+        """
+        self.__updateOK()
+    
+    @pyqtSlot(str)
     def on_targetDirectoryPicker_textChanged(self, txt):
         """
         Private slot handling a change of the target directory.

eric ide

mercurial