Date: | 2013-09-07 22:47:18 (10 years 6 months ago) |
---|---|
Author: | Paul Cercueil |
Commit: | e86a96c73ff01aa2f46feb2e0656555e6043f900 |
Message: | Fixes the Selector returning empty file/directory names This fixes commit ba5ef5126921a16a3735620ea3de234e68a52d27 |
Files: |
src/selector.cpp (1 diff) |
Change Details
src/selector.cpp | ||
---|---|---|
185 | 185 | if (fl.isFile(selected)) { |
186 | 186 | file = fl[selected]; |
187 | 187 | close = true; |
188 | ||
189 | char *buf = realpath(file.c_str(), NULL); | |
190 | file = buf; | |
191 | free(buf); | |
192 | 188 | } else { |
193 | dir = dir+fl[selected]+"/"; | |
189 | dir = dir+fl[selected]; | |
194 | 190 | char *buf = realpath(dir.c_str(), NULL); |
195 | dir = buf; | |
191 | dir = (string) buf + '/'; | |
196 | 192 | free(buf); |
197 | 193 | |
198 | 194 | selected = 0; |
Branches:
install_locations
master
opkrun
packages