ProjectDjango/DjangoTestDataDialog.py

changeset 113
9b7adb12b409
parent 110
da5ee5012004
child 119
5c6209f8abf0
diff -r ecb1aefcc4e1 -r 9b7adb12b409 ProjectDjango/DjangoTestDataDialog.py
--- a/ProjectDjango/DjangoTestDataDialog.py	Sat Nov 18 12:40:04 2017 +0100
+++ b/ProjectDjango/DjangoTestDataDialog.py	Sat Nov 18 13:07:26 2017 +0100
@@ -56,23 +56,23 @@
             (list of str, str, list of str, list of str, bool, bool)
         """
         labelsStr = self.labelsComboBox.currentText()
+        self.__project.setMostRecentTestData("RecentTestLabels", labelsStr)
         if labelsStr:
-            self.__project.setMostRecentTestData("RecentTestLabels", labelsStr)
             labels = labelsStr.split()
         else:
             labels = []
         
-        tagsStr = self.labelsComboBox.currentText()
+        tagsStr = self.tagsComboBox.currentText()
+        self.__project.setMostRecentTestData("RecentTestTags", tagsStr)
         if tagsStr:
-            self.__project.setMostRecentTestData("RecentTestTags", tagsStr)
             tags = tagsStr.split()
         else:
             tags = []
         
-        excludeTagsStr = self.labelsComboBox.currentText()
+        excludeTagsStr = self.excludeTagsComboBox.currentText()
+        self.__project.setMostRecentTestData("RecentTestExcludeTags",
+                                             excludeTagsStr)
         if excludeTagsStr:
-            self.__project.setMostRecentTestData("RecentTestExcludeTags",
-                                                 excludeTagsStr)
             excludeTags = excludeTagsStr.split()
         else:
             excludeTags = []

eric ide

mercurial