Project/ProjectSourcesBrowser.py

changeset 4186
e2bf1c32272b
parent 4183
856ba07de877
child 4563
881340f4bd0c
child 4632
ca310db386ed
--- a/Project/ProjectSourcesBrowser.py	Thu Mar 26 22:20:47 2015 +0100
+++ b/Project/ProjectSourcesBrowser.py	Sat Mar 28 11:49:02 2015 +0100
@@ -41,6 +41,8 @@
         line.
     @signal sourceFile(str, int, str) emitted to open the given file as the
         given type at the given line.
+    @signal sourceFile(str, list) emitted to open a Python file giving a list
+        of lines
     """
     showMenu = pyqtSignal(str, QMenu)
     
@@ -784,8 +786,8 @@
                 self.sourceFile[str, int].emit(
                     itm.fileName(), itm.attributeObject().lineno)
             elif isinstance(itm, BrowserImportItem):
-                self.sourceFile[str, int].emit(
-                    itm.fileName(), itm.lineno())
+                self.sourceFile[str, list].emit(
+                    itm.fileName(), itm.linenos())
         
     def __addNewPackage(self):
         """

eric ide

mercurial