Author: toad
Date: 2007-09-14 14:57:20 +0000 (Fri, 14 Sep 2007)
New Revision: 15163
Modified:
trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
Log:
Clear the bookmarks before adding new ones in BookmarkCallback.set(). What this
means is that if the bookmarks config is set, we won't always add them, we can
also remove existing bookmarks.
Modified: trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
2007-09-14 14:49:02 UTC (rev 15162)
+++ trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
2007-09-14 14:57:20 UTC (rev 15163)
@@ -92,6 +92,7 @@
public void set(String[] newVals) throws
InvalidConfigValueException {
FreenetURI key;
+ clear();
for (int i = 0; i < newVals.length; i++) {
try {
Matcher matcher =
pattern.matcher(newVals[i]);