aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaThemes.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-08-30 13:57:26 -0400
committerKen Moore <ken@pcbsd.org>2016-08-30 13:59:26 -0400
commitf8e7888c7c0ff3a2c4e5f90a60ff3daca752b4d1 (patch)
treea64d74d8091eed5ea8847df8396e55797b3dc59a /src-qt5/core/libLumina/LuminaThemes.cpp
parentMake sure that <QStringList> is included explicitly within the ScreenSettings... (diff)
downloadlumina-f8e7888c7c0ff3a2c4e5f90a60ff3daca752b4d1.tar.gz
lumina-f8e7888c7c0ff3a2c4e5f90a60ff3daca752b4d1.tar.bz2
lumina-f8e7888c7c0ff3a2c4e5f90a60ff3daca752b4d1.zip
Add a special case check to the cursor theme settings - don't allow "default" to be set as the cursor theme (causes a conflict due to how we save the setting as the "default" theme - it can't inherit itself).
Diffstat (limited to 'src-qt5/core/libLumina/LuminaThemes.cpp')
-rw-r--r--src-qt5/core/libLumina/LuminaThemes.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaThemes.cpp b/src-qt5/core/libLumina/LuminaThemes.cpp
index 7fe625a7..b6c18cf0 100644
--- a/src-qt5/core/libLumina/LuminaThemes.cpp
+++ b/src-qt5/core/libLumina/LuminaThemes.cpp
@@ -180,6 +180,13 @@ bool LTHEME::setCurrentSettings(QString themepath, QString colorpath, QString ic
//Change the current Cursor Theme
bool LTHEME::setCursorTheme(QString cursorname){
//qDebug() << "Set Cursor Theme:" << cursorname;
+ if(cursorname=="default"){
+ //special case - this will cause a recursive inheritance loop - just remove the file instead
+ if(QFile::exists(QDir::homePath()+"/.icons/default/index.theme")){
+ return QFile::remove(QDir::homePath()+"/.icons/default/index.theme");
+ }
+ return true; //already does not exist
+ }
QStringList info = LUtils::readFile(QDir::homePath()+"/.icons/default/index.theme");
bool insection = false;
bool changed = false;
bgstack15