Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

changeset 3062
9de9373da5bb
parent 3036
30c81c9e88b8
child 3064
2e7054d62218
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Sat Nov 02 11:55:46 2013 +0100
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Wed Nov 06 19:23:06 2013 +0100
@@ -140,6 +140,8 @@
         self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
         QApplication.processEvents()
         
+        self.__clearErrors()
+        
         if isinstance(fn, list):
             files = fn
         elif os.path.isdir(fn):
@@ -344,7 +346,7 @@
             editor = vm.getOpenEditor(fn)
             
             if itm.data(0, self.warningRole):
-                editor.toggleFlakesWarning(lineno, True, error)
+                editor.toggleWarning(lineno, True, error)
             else:
                 editor.toggleSyntaxError(lineno, index, True, error, show=True)
         else:
@@ -358,7 +360,7 @@
                 index = citm.data(0, self.indexRole)
                 error = citm.data(0, self.errorRole)
                 if citm.data(0, self.warningRole):
-                    editor.toggleFlakesWarning(lineno, True, error)
+                    editor.toggleWarning(lineno, True, error)
                 else:
                     editor.toggleSyntaxError(
                         lineno, index, True, error, show=True)

eric ide

mercurial