summaryrefslogtreecommitdiff
path: root/src/resources/wallpaper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/wallpaper.cpp')
-rw-r--r--src/resources/wallpaper.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp
index 22bbda9c..c8857745 100644
--- a/src/resources/wallpaper.cpp
+++ b/src/resources/wallpaper.cpp
@@ -55,9 +55,7 @@ static void initDefaultWallpaperPaths()
// Init the path
wallpaperPath = branding.getValue("wallpapersPath", "");
- if (!wallpaperPath.empty() && resman->isDirectory(wallpaperPath))
- return;
- else
+ if (wallpaperPath.empty() || !resman->isDirectory(wallpaperPath))
wallpaperPath = paths.getValue("wallpapers", "");
if (wallpaperPath.empty() || !resman->isDirectory(wallpaperPath))
@@ -66,12 +64,12 @@ static void initDefaultWallpaperPaths()
// Init the default file
wallpaperFile = branding.getValue("wallpaperFile", "");
- if (!wallpaperFile.empty() && resman->isDirectory(wallpaperFile))
+ if (!wallpaperFile.empty() && !resman->isDirectory(wallpaperFile))
return;
else
wallpaperFile = paths.getValue("wallpaperFile", "");
- if (wallpaperFile.empty() || !resman->isDirectory(wallpaperFile))
+ if (wallpaperFile.empty() || resman->isDirectory(wallpaperFile))
wallpaperFile = "login_wallpaper.png";
}