[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: annoying bug still around.....
From:       Hans Meine <hans_meine () gmx ! net>
Date:       2000-05-26 13:11:27
[Download RAW message or body]

Stefan Taferner <taferner@kde.org> writes:

> On Fri, 26 May 2000, David Faure wrote:
> > On Thu, May 25, 2000 at 10:47:49PM -0700, Waldo Bastian wrote:
> > > On Thu, 25 May 2000, George Staikos wrote:
> > > > This bug is STILL around from the old version:
> > > >
> > > > When an account is deleted, the config data is left int he config file (ie including the
> > > >password for the account!).  We really need a clean way to remove this stuff.  Any
> > > >recommendations?  I dont' see anything in the KConfig class to remove entries (or groups).
> > > >I guess our last resort could be to overwrite every entry with blanks....
> > > I'll see if I can add removeEntry / removeGroup functionality to KConfig.
> > Hmm ? It's there in KSimpleConfig.  It was said it wouldn't be done in KConfig because with
> >multiple files (across KDEDIRS) you don't have write permissions to all of them, and you can't
> >remove a group or an entry if the global file sets it.  What's wrong with using KSimpleConfig
> >here ?
> 
> KConfig is perfectly suited for what KMail needs. Having to open an extra config object just
> for deleting a group is somewhat, hmm, strange.
> 
> There is still use for the remove methods. E.g. if you want to remove the user settings in some
> areas to reactivate the global settings.

How about naming the functions "removerLocalXxxx()" then? 
IMHO this could prevent KConfig users from expecting wrong results. ;-)

-- 

   /  /
  /--/
 /  / ANS
___________________________________________________________________________
 Hans Meine   Wördemannsweg 93, D-22527 Hamburg  mailto:hans_meine@gmx.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic