mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Also search the Default skin in the user directory for skin files
This fixes a segmentation fault occuring on the wallpaper dialog when trying to select a wallpaper located in the Default skin in the user directory, when the current skin is not "Default".
This commit is contained in:
@@ -73,9 +73,12 @@ string SurfaceCollection::getSkinFilePath(const string &skin, const string &file
|
||||
return path;
|
||||
|
||||
/* If it is nowhere to be found, as a last resort we check the
|
||||
* "Default" skin on the system directory for a corresponding
|
||||
* (but probably not similar) file. */
|
||||
* "Default" skin for a corresponding (but probably not similar) file. */
|
||||
if (useDefault) {
|
||||
path = GMenu2X::getHome() + "/skins/Default/" + file;
|
||||
if (fileExists(path))
|
||||
return path;
|
||||
|
||||
path = GMENU2X_SYSTEM_DIR "/skins/Default/" + file;
|
||||
if (fileExists(path))
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user