mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Fixes the Selector returning empty file/directory names
This fixes commit ba5ef51269
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user