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

List:       kde-devel
Subject:    Re: Problems with KRecentFilesAction
From:       Björn Sahlström <bjorn.sahlstrom () mail ! bip ! net>
Date:       2002-06-09 22:29:26
[Download RAW message or body]

On Sunday 09 June 2002 21.18, Christian Nitschkowski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
> I've got a problem with a KRecentFilesAction.
> The code looks like this:
>
> KRecentFilesAction* recent = KStdAction::openRecent(this, SLOT
> (openRecent(const KURL&)), actionCollection);
>
> //snip
>
> recent->clearURLList();
> recent->saveEntries(KGlobal::config());
> KGlobal::config()->sync();
>
>
> But after syncing the rc-file, the RecentFiles-section is unchanged.
>
> So I tried to delete the RecentFiles-section with
> KGlobal::config()->deleteGroup("RecentFiles", true);
>
> After syncing the rc-file, the RecentFiles-section was still there and
> unchanged.
>
> How can I permanently clear the URLList of recent?
>

I've had the same problem but couldn't solve it. Ended up with that I abonded 
the class and used a KSelectAction instead.
-- 
Mvh
Björn Sahlström
kbjorn@users.sourceforge.net

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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