Ecere Software
/
ede
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
869508b
)
explorer: fixed go up on root crash (jerome's fix)
author
Rejean Loyer
<rejean.loyer@gmail.com>
Wed, 14 Sep 2011 21:46:50 +0000
(17:46 -0400)
committer
Rejean Loyer
<rejean.loyer@gmail.com>
Wed, 14 Sep 2011 22:55:31 +0000
(18:55 -0400)
explorer/src/ExplorerWindow.ec
patch
|
blob
|
history
diff --git
a/explorer/src/ExplorerWindow.ec
b/explorer/src/ExplorerWindow.ec
index
5e41a21
..
82c991e
100644
(file)
--- 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;