Fixed an issue in the Debug UI. 6_0_x

Fri, 15 May 2015 18:38:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 May 2015 18:38:52 +0200
branch
6_0_x
changeset 4257
1d460912fbb7
parent 4252
ea05b52a278f
child 4260
af5c49e9e568

Fixed an issue in the Debug UI.
(grafted from 5c61205c4bd7e62b6985cd49be5321dcb3319650)

Debugger/DebugUI.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugUI.py	Sat May 09 14:10:59 2015 +0200
+++ b/Debugger/DebugUI.py	Fri May 15 18:38:52 2015 +0200
@@ -1079,10 +1079,11 @@
                 filename = os.path.join(self.project.getProjectPath(),
                                         filename)
             else:
-                d = os.path.dirname(
-                    self.project.getMainScript(normalized=True))
-                if os.path.exists(os.path.join(d, filename)):
-                    filename = os.path.join(d, filename)
+                ms = self.project.getMainScript(normalized=True)
+                if ms is not None:
+                    d = os.path.dirname(ms)
+                    if os.path.exists(os.path.join(d, filename)):
+                        filename = os.path.join(d, filename)
         self.viewmanager.setFileLine(filename, lineNo, True, True)
         E5MessageBox.critical(
             self.ui, Program,

eric ide

mercurial