libede:FileSystemBox: fixed call NotifyOpenNode on folders when navigateFolders is...
[ede] / explorer / src / ExplorerWindow.ec
index 13406f1..6641431 100644 (file)
@@ -135,7 +135,7 @@ class ExplorerWindow : Window
             case goUp:
             {
                char * path = view.path;
-               char * newPath = new char[strlen(path)];
+               char * newPath = new char[strlen(path)+1];
                StripLastDirectory(path, newPath);
                if(!newPath[0])
                {
@@ -305,6 +305,7 @@ class ExplorerWindow : Window
       {
          if(node.type.isFile)
          {
+         #ifndef __WIN32__
             char command[MAX_LOCATION];
             /*_FileType t = node.type;
             if(t == ewsFile || t == epjFile ||
@@ -315,7 +316,10 @@ class ExplorerWindow : Window
                sprintf(command, "ide %s", node.path);
             /*else
                sprintf(command, "%s", node.path);*/
-            ShellOpen(command);
+            Execute(command);
+         #else
+            ShellOpen(node.path);
+         #endif
          }
          return true;
       }