Trigger save on bookmark-add --toggle.

The toggle option was failing to fire the changed signal when it removed
a bookmark. This means the bookmark file would not be marked as dirty,
and would not be saved on exit/autosave (unless another change was
made).
This commit is contained in:
Ryan Roden-Corrent 2018-02-11 16:19:28 -05:00
parent 3170e35b31
commit 4a8b23380c

View File

@ -280,7 +280,7 @@ class BookmarkManager(UrlMarkManager):
if urlstr in self.marks:
if toggle:
del self.marks[urlstr]
self.delete(urlstr)
return False
else:
raise AlreadyExistsError("Bookmark already exists!")