aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp
index 9ffe39f8..e2ce6943 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp
@@ -194,6 +194,10 @@ bool lthemeengine::setCursorTheme(QString cursorname){
else{ info << "[Icon Theme]" << newval; } //entire section missing from file
}
//Now save the file
+ if( !QFile::exists(QDir::homePath()+"/.icons/default") ){
+ //Need to create the directory first
+ QDir().mkpath(QDir::homePath()+"/.icons/default")
+ }
QFile file(QDir::homePath()+"/.icons/default/index.theme");
bool ok = false;
if( file.open(QIODevice::WriteOnly | QIODevice::Truncate) ){
bgstack15