diff options
author | Ken Moore <ken@pcbsd.org> | 2016-08-30 13:57:26 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-08-30 13:59:26 -0400 |
commit | f8e7888c7c0ff3a2c4e5f90a60ff3daca752b4d1 (patch) | |
tree | a64d74d8091eed5ea8847df8396e55797b3dc59a /src-qt5/core/libLumina/LuminaThemes.cpp | |
parent | Make sure that <QStringList> is included explicitly within the ScreenSettings... (diff) | |
download | lumina-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.cpp | 7 |
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; |