aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-01-30 10:43:46 -0500
committerKen Moore <ken@ixsystems.com>2017-01-30 10:43:46 -0500
commit80032c31b1b99717206773234ea1bd1d9e807684 (patch)
treee59aeae868cac3f18038f2df47ee2d73fbed1452 /src-qt5/core-utils
parentAdd a new "DarkGlass" theme to Lumina and the pkg-plist. (diff)
downloadlumina-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.cpp12
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);
}
bgstack15