From: Rejean Loyer Date: Fri, 16 Sep 2011 16:24:35 +0000 (-0400) Subject: explorer: fixed opening nodes that specify a path X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=commitdiff_plain;h=4fc0669415b9f2bd30e0322acd9b03a688e36d4f explorer: fixed opening nodes that specify a path --- diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index c557372..fa7bf4c 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -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)