mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 08:39:23 +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)) {
|
||||
file = fl[selected];
|
||||
close = true;
|
||||
|
||||
char *buf = realpath(file.c_str(), NULL);
|
||||
file = buf;
|
||||
free(buf);
|
||||
} else {
|
||||
dir = dir+fl[selected]+"/";
|
||||
dir = dir+fl[selected];
|
||||
char *buf = realpath(dir.c_str(), NULL);
|
||||
dir = buf;
|
||||
dir = (string) buf + '/';
|
||||
free(buf);
|
||||
|
||||
selected = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user