Date: | 2011-07-25 12:05:24 (12 years 8 months ago) |
---|---|
Author: | Paul Cercueil |
Commit: | 4636a84eef476ffe64014f0e193076f91abbab9e |
Message: | Create the "sections" user directory if required, when
creating a new link. It previously assumed that this directory was present, which isn't the case all the time. |
Files: |
src/menu.cpp (1 diff) |
Change Details
src/menu.cpp | ||
---|---|---|
204 | 204 | title = title.substr(0, pos); |
205 | 205 | } |
206 | 206 | |
207 | string linkpath = GMenu2X::getHome()+"/sections/"+section; | |
207 | string linkpath = GMenu2X::getHome() + "/sections"; | |
208 | if (!fileExists(linkpath)) | |
209 | mkdir(linkpath.c_str(), 0755); | |
210 | ||
211 | linkpath = GMenu2X::getHome() + "/sections/" + section; | |
208 | 212 | if (!fileExists(linkpath)) |
209 | 213 | mkdir(linkpath.c_str(), 0755); |
210 | 214 |
Branches:
install_locations
master
opkrun
packages