diff options
author | Ken Moore <ken@pcbsd.org> | 2015-02-17 13:33:47 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-02-17 13:33:47 -0500 |
commit | c2c6b5b3b20318eab442a4002e7521c98a7995d0 (patch) | |
tree | da242f5461e19944f2c5375d34bee4c84ad50014 /lumina-desktop/LDesktop.cpp | |
parent | Clean up some more debugging output from the LPanel class (make it switchable... (diff) | |
download | lumina-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.cpp | 8 |
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(); |