Avoid unnecessary and excessive kconfig syncs.

svn path=/trunk/KDE/kdebase/workspace/; revision=476560
icc-effect-5.14.5
Luboš Luňák 2005-11-01 14:17:11 +00:00
parent 00ba722f60
commit 67ba695f34
1 changed files with 4 additions and 1 deletions

View File

@ -1026,12 +1026,14 @@ void Workspace::cleanupTemporaryRules()
void Workspace::discardUsedWindowRules( Client* c, bool withdrawn )
{
bool updated = false;
for( QList< Rules* >::Iterator it = rules.begin();
it != rules.end();
)
{
if( c->rules()->contains( *it ))
{
updated = true;
(*it)->discardUsed( withdrawn );
if( (*it)->isEmpty())
{
@ -1044,6 +1046,7 @@ void Workspace::discardUsedWindowRules( Client* c, bool withdrawn )
}
++it;
}
if( updated )
rulesUpdated();
}