diff -r 32a3c9d62e90 -r 22bc345844e7 RadonMetrics/MaintainabilityIndexDialog.py --- a/RadonMetrics/MaintainabilityIndexDialog.py Sat Sep 19 11:54:33 2015 +0200 +++ b/RadonMetrics/MaintainabilityIndexDialog.py Sat Sep 19 18:24:07 2015 +0200 @@ -10,7 +10,7 @@ from __future__ import unicode_literals try: - str = unicode # __IGNORE_EXCEPTION __IGNORE_WARNING__ + str = unicode # __IGNORE_EXCEPTION__ __IGNORE_WARNING__ except NameError: pass @@ -78,7 +78,7 @@ )) self.__rankColors = { "A": Qt.green, - "B": Qt.yellow, #QColor("orange"), + "B": Qt.yellow, "C": Qt.red, } @@ -168,6 +168,8 @@ the maintainability index for @type str or list of str """ + self.__errorItem = None + self.resultList.clear() self.cancelled = False self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) @@ -248,7 +250,7 @@ self.__createErrorItem(self.filename, str(msg).rstrip()) self.progress += 1 # Continue with next file - self.rawMetrics() + self.maintainabilityIndex() return self.__finished = False @@ -424,7 +426,4 @@ fileList = \ [f for f in fileList if not fnmatch.fnmatch(f, filter)] - self.__errorItem = None - self.resultList.clear() - self.cancelled = False self.start(fileList)