ide/debugger: Fixed opening paths in call stack view when absolute path is wrong
authorJerome St-Louis <jerome@ecere.com>
Fri, 30 Aug 2013 04:58:33 +0000 (00:58 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 30 Aug 2013 05:03:27 +0000 (01:03 -0400)
ide/src/debugger/Debugger.ec

index ef8f312..15acfb1 100644 (file)
@@ -881,7 +881,9 @@ class Debugger
          {
             ide.callStackView.Show();
 
-            if(!frame.absoluteFile && frame.file)
+            if(frame.absoluteFile)
+               editor = (CodeEditor)ide.OpenFile(frame.absoluteFile, normal, true, null, no, normal, false);
+            if(!editor && frame.file)
                frame.absoluteFile = ide.workspace.GetAbsolutePathFromRelative(frame.file);
             if(!frame.absoluteFile && askForLocation && frame.file)
             {
@@ -896,7 +898,7 @@ class Debugger
                   frame.absoluteFile = ide.workspace.GetAbsolutePathFromRelative(frame.file);
                }
             }
-            if(frame.absoluteFile)
+            if(!editor && frame.absoluteFile)
                editor = (CodeEditor)ide.OpenFile(frame.absoluteFile, normal, true, null, no, normal, false);
             ide.Update(null);
             if(editor && frame.line)