DebuggerPythonPage, DebuggerPython3Page: fixed an issue causing an empty virtual environment selection to not being saved.

Wed, 20 Jun 2018 18:33:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Jun 2018 18:33:41 +0200
changeset 6357
ceb3d7c25650
parent 6356
db067aab426d
child 6358
1a274e1ef9c0

DebuggerPythonPage, DebuggerPython3Page: fixed an issue causing an empty virtual environment selection to not being saved.

Preferences/ConfigurationPages/DebuggerPython3Page.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/DebuggerPythonPage.py file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationPages/DebuggerPython3Page.py	Mon Jun 18 18:46:38 2018 +0200
+++ b/Preferences/ConfigurationPages/DebuggerPython3Page.py	Wed Jun 20 18:33:41 2018 +0200
@@ -68,11 +68,9 @@
         """
         Public slot to save the Debugger Python configuration.
         """
-        venvName = self.venvComboBox.currentText()
-        if venvName:
-            Preferences.setDebugger(
-                "Python3VirtualEnv",
-                venvName)
+        Preferences.setDebugger(
+            "Python3VirtualEnv",
+            self.venvComboBox.currentText())
         if self.standardButton.isChecked():
             dct = "standard"
         else:
--- a/Preferences/ConfigurationPages/DebuggerPythonPage.py	Mon Jun 18 18:46:38 2018 +0200
+++ b/Preferences/ConfigurationPages/DebuggerPythonPage.py	Wed Jun 20 18:33:41 2018 +0200
@@ -68,11 +68,9 @@
         """
         Public slot to save the Debugger Python configuration.
         """
-        venvName = self.venvComboBox.currentText()
-        if venvName:
-            Preferences.setDebugger(
-                "Python2VirtualEnv",
-                venvName)
+        Preferences.setDebugger(
+            "Python2VirtualEnv",
+            self.venvComboBox.currentText())
         if self.standardButton.isChecked():
             dct = "standard"
         else:

eric ide

mercurial