Fixed an issue in the syntax check dialog.

Mon, 02 Nov 2015 10:06:43 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 02 Nov 2015 10:06:43 +0100
changeset 4524
5543f4dec8f7
parent 4522
e41020d3c031
child 4527
26fee37accce

Fixed an issue in the syntax check dialog.

Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py file | annotate | diff | comparison | revisions
diff -r e41020d3c031 -r 5543f4dec8f7 Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Mon Nov 02 09:57:05 2015 +0100
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Mon Nov 02 10:06:43 2015 +0100
@@ -353,16 +353,16 @@
                     source = ""
             else:
                 source = self.source.splitlines()
-        for _fn, lineno, col, code, msg in warnings:
-            self.noResults = False
-            if source:
-                try:
-                    scr_line = source[lineno - 1].strip()
-                except IndexError:
+            for _fn, lineno, col, code, msg in warnings:
+                self.noResults = False
+                if source:
+                    try:
+                        scr_line = source[lineno - 1].strip()
+                    except IndexError:
+                        scr_line = ""
+                else:
                     scr_line = ""
-            else:
-                scr_line = ""
-            self.__createResultItem(_fn, lineno, col, msg, scr_line, True)
+                self.__createResultItem(_fn, lineno, col, msg, scr_line, True)
 
         self.progress += 1
         self.checkProgress.setValue(self.progress)

eric ide

mercurial