[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma
From:       Wang Kai <zealot.hoi () gmail ! com>
Date:       2009-02-28 6:40:55
Message-ID: 1235803255.027465.16237.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 933145 by wkai:

BUG: 179684
BUG: 181451
sync the config, and connect the config file's create signal
so Plasma::Theme::themeChanged() work across process 


 M  +2 -0      theme.cpp  


--- trunk/KDE/kdelibs/plasma/theme.cpp #933144:933145
@@ -264,6 +264,7 @@
 
     //FIXME: if/when kconfig gets change notification, this will be unecessary
     KDirWatch::self()->addFile(KStandardDirs::locateLocal("config", ThemePrivate::themeRcFile));
+    connect(KDirWatch::self(), SIGNAL(created(QString)), this, SLOT(settingsFileChanged(QString)));
     connect(KDirWatch::self(), SIGNAL(dirty(QString)), this, SLOT(settingsFileChanged(QString)));
 }
 
@@ -390,6 +391,7 @@
         } else {
             cg.writeEntry("name", themeName);
         }
+        cg.sync();
     }
 
     //check for expired cache
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic