diff options
author | Ken Moore <ken@ixsystems.com> | 2020-04-03 10:09:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 10:09:23 -0400 |
commit | dbb9ec322191788483af10a55dccd8eb9f7fda9f (patch) | |
tree | a925c405da577f37029bee6afd22a5aeda1377bb /src-qt5/core/lumina-theme-engine/src/lthemeengine | |
parent | Update README.md (diff) | |
download | lumina-dbb9ec322191788483af10a55dccd8eb9f7fda9f.tar.gz lumina-dbb9ec322191788483af10a55dccd8eb9f7fda9f.tar.bz2 lumina-dbb9ec322191788483af10a55dccd8eb9f7fda9f.zip |
Update lthemeengine.cpp
Ensure we create the cursor directory before saving the cursor theme file
Diffstat (limited to 'src-qt5/core/lumina-theme-engine/src/lthemeengine')
-rw-r--r-- | src-qt5/core/lumina-theme-engine/src/lthemeengine/lthemeengine.cpp | 4 |
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) ){ |