Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

branch
6_0_x
changeset 4440
d3c84c471c32
parent 4280
9556c261c3a2
child 4523
0821211a1db1
diff -r 1d7d42500f54 -r d3c84c471c32 Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Sun Sep 06 11:23:53 2015 +0200
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Thu Sep 03 23:01:02 2015 +0200
@@ -329,13 +329,14 @@
         if self.noResults:
             return
         
+        vm = e5App().getObject("ViewManager")
+        
         if itm.parent():
             fn = Utilities.normabspath(itm.data(0, self.filenameRole))
             lineno = itm.data(0, self.lineRole)
             index = itm.data(0, self.indexRole)
             error = itm.data(0, self.errorRole)
             
-            vm = e5App().getObject("ViewManager")
             vm.openSourceFile(fn, lineno)
             editor = vm.getOpenEditor(fn)
             
@@ -345,7 +346,6 @@
                 editor.toggleSyntaxError(lineno, index, True, error, show=True)
         else:
             fn = Utilities.normabspath(itm.data(0, self.filenameRole))
-            vm = e5App().getObject("ViewManager")
             vm.openSourceFile(fn)
             editor = vm.getOpenEditor(fn)
             for index in range(itm.childCount()):
@@ -359,6 +359,9 @@
                     editor.toggleSyntaxError(
                         lineno, index, True, error, show=True)
         
+        editor = vm.activeWindow()
+        editor.updateVerticalScrollBar()
+        
     @pyqtSlot()
     def on_showButton_clicked(self):
         """
@@ -404,6 +407,9 @@
                 editor.clearSyntaxError()
                 editor.clearFlakesWarnings()
         
+        editor = vm.activeWindow()
+        editor.updateVerticalScrollBar()
+        
     def __clearErrors(self, files):
         """
         Private method to clear all error and warning markers of

eric ide

mercurial