//______________________________________________________________ void ExceptionList::writeConfig( KSharedConfig::Ptr config ) { // remove all existing exceptions QString groupName; for( int index = 0; config->hasGroup( groupName = exceptionGroupName( index ) ); ++index ) { config->deleteGroup( groupName ); } // rewrite current exceptions int index = 0; foreach( const ConfigurationPtr& exception, _exceptions ) { Util::writeConfig( exception.data(), config.data(), exceptionGroupName( index ) ); ++index; }