aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktop.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-02-17 13:33:47 -0500
committerKen Moore <ken@pcbsd.org>2015-02-17 13:33:47 -0500
commitc2c6b5b3b20318eab442a4002e7521c98a7995d0 (patch)
treeda242f5461e19944f2c5375d34bee4c84ad50014 /lumina-desktop/LDesktop.cpp
parentClean up some more debugging output from the LPanel class (make it switchable... (diff)
downloadlumina-c2c6b5b3b20318eab442a4002e7521c98a7995d0.tar.gz
lumina-c2c6b5b3b20318eab442a4002e7521c98a7995d0.tar.bz2
lumina-c2c6b5b3b20318eab442a4002e7521c98a7995d0.zip
Clean up how the lumina-desktop closes down:
Now it is run through a "CleanSession" function beforehand to try and safely close down any applications/trays. Als reduce the number of filesystem watchers: only have one in the session itself, which sends out a signal when the desktop settings config file changes (instead of a watcher in every desktop class).
Diffstat (limited to 'lumina-desktop/LDesktop.cpp')
-rw-r--r--lumina-desktop/LDesktop.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp
index daf9b355..31baa48d 100644
--- a/lumina-desktop/LDesktop.cpp
+++ b/lumina-desktop/LDesktop.cpp
@@ -135,10 +135,10 @@ void LDesktop::InitDesktop(){
bgtimer = new QTimer(this);
bgtimer->setSingleShot(true);
connect(bgtimer, SIGNAL(timeout()), this, SLOT(UpdateBackground()) );
- watcher = new QFileSystemWatcher(this);
- //connect(LSession::instance(), SIGNAL(DesktopConfigChanged()), this, SLOT(SettingsChanged()) );
- watcher->addPath(settings->fileName());
- connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT(SettingsChanged()) );
+ //watcher = new QFileSystemWatcher(this);
+ connect(QApplication::instance(), SIGNAL(DesktopConfigChanged()), this, SLOT(SettingsChanged()) );
+ //watcher->addPath(settings->fileName());
+ //connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT(SettingsChanged()) );
if(DEBUG){ qDebug() << "Create bgWindow"; }
bgWindow = new QWidget();
bgstack15