ide;debugger; tweaked provide source files location directory stuff for toggling...
authorRejean Loyer <redj@ecere.com>
Mon, 7 Oct 2013 07:03:27 +0000 (03:03 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 9 Oct 2013 06:32:14 +0000 (02:32 -0400)
ide/src/debugger/Debugger.ec

index 8f21474..b702a96 100644 (file)
@@ -1505,13 +1505,13 @@ class Debugger
 
          WorkspaceGetRelativePath(absolutePath, relativePath, &owner);
 
-         if(!owner)
+         if(!owner && !FileExists(absolutePath))
          {
             char title[MAX_LOCATION];
             char directory[MAX_LOCATION];
             char sourceDir[MAX_LOCATION];
             StripLastDirectory(absolutePath, directory);
-            snprintf(title, sizeof(title), $"Provide source files location directory for %s", absolutePath);
+            snprintf(title, sizeof(title), $"Provide source files location directory for %s", relativePath);
             title[sizeof(title)-1] = 0;
             while(true)
             {