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:
parent
62a173c85c
commit
c748f46346
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue