GNOME Bugzilla – Bug 161862
If a path is already present in the bookmarks list clicking on add bookmark adds it again
Last modified: 2005-02-17 02:59:31 UTC
1. Right click on any folder and select "Browse Folder" 2. Click on Bookmarks->Add Bookmark. 3. Repeat above steps multiple number of times. 4. The same folder path gets added as many times as you click on add bookmark. Ideally if a path is already present in the bookmarks list then it should not get added again.
Created attachment 35076 [details] [review] Proposed patch Proposed patch - adds a path uri to the bookmark list only the first time.
Created attachment 35077 [details] [review] Proposed patch Proposed patch - adds a path uri to the bookmark list only the first time. This patch fixes bug#161859 - inconsistent behaviour of add bookmarks bug also. Attaching the same patch to bug#161859.
Looks good. And its better to notify the user if bookmark already exists.
*** Bug 161859 has been marked as a duplicate of this bug. ***
Comment on attachment 35076 [details] [review] Proposed patch Marking this patch obsolete in favor of the second one.
I moved the check into add_bookmark_for_current_location as that method's doc blurb actually states that it does nothing if the bookmark already exists. It's on HEAD, thanks.