KRecentFilesAction::clearURLList does only half the job
Koos Vriezen
koos.vriezen at xs4all.nl
Thu Jul 28 09:14:15 BST 2005
Hi,
Bug 109728 reports about the clear history clears the menu but restarting
puts everything back again. What I do is (which clears the menu):
fileOpenRecent->clearURLList ();
and when closing the application (which writes the old ones in rc file):
fileOpenRecent->saveEntries (config,"Recent Files");
Now IMO that is not what one would expect. Therefor I propose this
addition in KSelectAction::clear()
--- kactionclasses.cpp (revision 434332)
+++ kactionclasses.cpp (working copy)
@@ -745,6 +745,7 @@
int len = containerCount();
for( int i = 0; i < len; ++i )
updateClear( i );
+ setItems( QStringList() );
}
which also disables the menu because its empty. Ok, or should this be in
KRecentFilesAction::clearURLList() or am I missing the point?
Koos
More information about the kde-core-devel
mailing list