Make sure to write the rules settings to the config file

before launching the kcm that will edit it.


svn path=/trunk/KDE/kdebase/kwin/; revision=423079
This commit is contained in:
Luboš Luňák 2005-06-07 12:08:23 +00:00
parent 62a173c85c
commit c748f46346

View file

@ -876,6 +876,7 @@ WindowRules Workspace::findWindowRules( const Client* c, bool ignore_temporary )
void Workspace::editWindowRules( Client* c )
{
writeWindowRules();
KApplication::kdeinitExec( "kwin_rules_dialog", QStringList() << "--wid" << QString::number( c->window()));
}
@ -901,6 +902,7 @@ void Workspace::loadWindowRules()
void Workspace::writeWindowRules()
{
rulesUpdatedTimer.stop();
KConfig cfg( "kwinrulesrc" );
cfg.setGroup( "General" );
cfg.writeEntry( "count", rules.count());