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
204204        title = title.substr(0, pos);
205205    }
206206
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;
208212    if (!fileExists(linkpath))
209213        mkdir(linkpath.c_str(), 0755);
210214

Archive Download the corresponding diff file



interactive