explorer: fixed opening nodes that specify a path
authorRejean Loyer <rejean.loyer@gmail.com>
Fri, 16 Sep 2011 16:24:35 +0000 (12:24 -0400)
committerRejean Loyer <rejean.loyer@gmail.com>
Fri, 16 Sep 2011 16:24:35 +0000 (12:24 -0400)
explorer/src/ExplorerWindow.ec

index c557372..fa7bf4c 100644 (file)
@@ -357,20 +357,23 @@ class ExplorerWindow : Window
       {
          if(node.type.isFile)
          {
+            char path[MAX_LOCATION];
          #ifndef __WIN32__
             char command[MAX_LOCATION];
+            node.GetPath(path);
             /*_FileType t = node.type;
             if(t == ewsFile || t == epjFile ||
                   t == ecFile || t == ehFile ||
                   t == cppFile || t == hppFile ||
                   t == cFile || t == hFile ||
                   t == textFile || t == webFile)*/
-               sprintf(command, "ide %s", node.path);
+               sprintf(command, "ide %s", path);
             /*else
-               sprintf(command, "%s", node.path);*/
+               sprintf(command, "%s", path);*/
             Execute(command);
          #else
-            ShellOpen(node.path);
+            node.GetPath(path);
+            ShellOpen(path);
          #endif
          }
          else if(node.type.isFolder && tree.visible)