mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:30:18 +02:00
Don't apply realpath() to entered subdirs in Selector
This way, symlinks stay in the path, so when we go up a level we end up in the previous directory instead of in the linked directory's parent.
This commit is contained in:
parent
c7a5b874f1
commit
7b2c26cc3c
@ -206,11 +206,7 @@ int Selector::exec(int startSelection) {
|
|||||||
if (subdir == "..") {
|
if (subdir == "..") {
|
||||||
selected = goToParentDir(fl);
|
selected = goToParentDir(fl);
|
||||||
} else {
|
} else {
|
||||||
dir += subdir;
|
dir += subdir + '/';
|
||||||
char *buf = realpath(dir.c_str(), NULL);
|
|
||||||
dir = (string) buf + '/';
|
|
||||||
free(buf);
|
|
||||||
|
|
||||||
prepare(fl);
|
prepare(fl);
|
||||||
selected = 0;
|
selected = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user