mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 01:06:16 +02:00
Fixes the Selector returning empty file/directory names
This fixes commit ba5ef51269
This commit is contained in:
parent
3ce314c65d
commit
e86a96c73f
@ -185,14 +185,10 @@ int Selector::exec(int startSelection) {
|
|||||||
if (fl.isFile(selected)) {
|
if (fl.isFile(selected)) {
|
||||||
file = fl[selected];
|
file = fl[selected];
|
||||||
close = true;
|
close = true;
|
||||||
|
|
||||||
char *buf = realpath(file.c_str(), NULL);
|
|
||||||
file = buf;
|
|
||||||
free(buf);
|
|
||||||
} else {
|
} else {
|
||||||
dir = dir+fl[selected]+"/";
|
dir = dir+fl[selected];
|
||||||
char *buf = realpath(dir.c_str(), NULL);
|
char *buf = realpath(dir.c_str(), NULL);
|
||||||
dir = buf;
|
dir = (string) buf + '/';
|
||||||
free(buf);
|
free(buf);
|
||||||
|
|
||||||
selected = 0;
|
selected = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user