X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=blobdiff_plain;f=explorer%2Fsrc%2FExplorerWindow.ec;h=82c991eea3fd53ad9008ac3ffbc51ca2a57d22d7;hp=6d6ee59fd4e4c348c2dce90670400c7a1d746268;hb=ff99fe85a4c0f62216d54470ebe205fa568096dc;hpb=5b04f13e5356bc8f52a8b5bccdd6fc3c097ff76a;ds=sidebyside diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index 6d6ee59..82c991e 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -126,6 +126,11 @@ class ExplorerWindow : Window char * path = view.path; char * newPath = new char[strlen(path)]; StripLastDirectory(path, newPath); + if(!newPath[0]) + { + newPath[0] = '/'; + newPath[1] = 0; + } view.path = newPath; delete newPath; break; @@ -282,6 +287,18 @@ class ExplorerWindow : Window locationBox = addressBar; navigateFolders = true; borderStyle = none; + + bool NotifyNodeOpen(FileSystemBox box, FileSystemNode node) + { + if(node.type.isFile) + { + char command[MAX_LOCATION]; + char * t = node.path; + sprintf(command, "ide %s", node.path); + ShellOpen(command); + } + return true; + } }; /*ExplorerSearch search