aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libLumina/LuminaUtils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp
index b569782e..89dc72a4 100644
--- a/libLumina/LuminaUtils.cpp
+++ b/libLumina/LuminaUtils.cpp
@@ -203,7 +203,13 @@ QStringList LUtils::listFavorites(){
if(lastRead.isNull() || lastRead<QFileInfo(QDir::homePath()+"/.lumina/favorites/fav.list").lastModified()){
fav = LUtils::readFile(QDir::homePath()+"/.lumina/favorites/fav.list");
lastRead = cur;
+ if(fav.isEmpty()){
+ //Make sure the favorites dir exists, and create it if necessary
+ QDir dir(QDir::homePath()+"/.lumina/favorites");
+ if(!dir.exists()){ dir.mkpath(QDir::homePath()+"/.lumina/favorites"); }
+ }
}
+
return fav;
}
bgstack15