From 4fc0669415b9f2bd30e0322acd9b03a688e36d4f Mon Sep 17 00:00:00 2001 From: Rejean Loyer Date: Fri, 16 Sep 2011 12:24:35 -0400 Subject: [PATCH] explorer: fixed opening nodes that specify a path --- explorer/src/ExplorerWindow.ec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) -- 1.8.3.1