diff options
author | Ken Moore <ken@ixsystems.com> | 2017-01-30 10:43:46 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-01-30 10:43:46 -0500 |
commit | 80032c31b1b99717206773234ea1bd1d9e807684 (patch) | |
tree | e59aeae868cac3f18038f2df47ee2d73fbed1452 /src-qt5/core-utils | |
parent | Add a new "DarkGlass" theme to Lumina and the pkg-plist. (diff) | |
download | lumina-80032c31b1b99717206773234ea1bd1d9e807684.tar.gz lumina-80032c31b1b99717206773234ea1bd1d9e807684.tar.bz2 lumina-80032c31b1b99717206773234ea1bd1d9e807684.zip |
Fix up the saving of the user's default icon via lumina-config.
Diffstat (limited to 'src-qt5/core-utils')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_session_options.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp b/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp index 1af87cd2..4390867e 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp @@ -62,6 +62,18 @@ void page_session_options::SaveSettings(){ QFile file(lopenWatchFile); if(file.open(QIODevice::WriteOnly) ){ file.close(); } //just need to touch it to create the file } + + //User Icon + QString path = QDir::homePath()+"/.loginIcon.png"; //where the icon should be placed + QString icopath = ui->push_session_setUserIcon->whatsThis(); + qDebug() << "User Icon:" << icopath; + if(icopath != path && QFile::exists(icopath)){ + QPixmap ico(icopath); + ico = ico.scaled(64,64, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); + bool ok = ico.save(path); + qDebug() << " - Saved User Icon:" << ok; + } + emit HasPendingChanges(false); } |