KConfigBase::deleteGroup not working?

Gary Cramblitt garycramblitt at comcast.net
Fri May 26 23:49:31 BST 2006


Right now, config->deleteGroup("MyGroup") doesn't delete the group.

This code

bool KConfigBase::deleteGroup( const QString& _group, WriteConfigFlags 
pFlags )
{
  KEntryMap aEntryMap = internalEntryMap(_group);

  if (pFlags & Recursive) {
    // Check if it empty
    return aEntryMap.isEmpty();
  }

doesn't seem to match what the api doc says:

bool KConfigBase::deleteGroup   (   const QString &   group, 
  WriteConfigFlags   pFlags = Recursive
  ) 
     
   Deletes a configuration entry group. 
If the group is not empty and Recursive is not set, nothing gets deleted and 
false is returned. 

-- 
Gary Cramblitt (aka PhantomsDad)




More information about the kde-core-devel mailing list