explorer: using ShellOpen under windows and Execute for calling ide under linux until...
authorRejean Loyer <rejean.loyer@gmail.com>
Thu, 15 Sep 2011 01:35:59 +0000 (21:35 -0400)
committerRejean Loyer <rejean.loyer@gmail.com>
Thu, 15 Sep 2011 01:35:59 +0000 (21:35 -0400)
explorer/src/ExplorerWindow.ec

index 13406f1..20747ee 100644 (file)
@@ -305,6 +305,7 @@ class ExplorerWindow : Window
       {
          if(node.type.isFile)
          {
       {
          if(node.type.isFile)
          {
+         #ifndef __WIN32__
             char command[MAX_LOCATION];
             /*_FileType t = node.type;
             if(t == ewsFile || t == epjFile ||
             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);*/
                sprintf(command, "ide %s", node.path);
             /*else
                sprintf(command, "%s", node.path);*/
-            ShellOpen(command);
+            Execute(command);
+         #else
+            ShellOpen(node.path);
+         #endif
          }
          return true;
       }
          }
          return true;
       }