From 4a8b23380ce38c532c9c5d6c9a2d8568ecead37b Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Sun, 11 Feb 2018 16:19:28 -0500 Subject: [PATCH] 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). --- qutebrowser/browser/urlmarks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/urlmarks.py b/qutebrowser/browser/urlmarks.py index d2f563bb6..0a0dfb4f2 100644 --- a/qutebrowser/browser/urlmarks.py +++ b/qutebrowser/browser/urlmarks.py @@ -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!")