From 0ee7e40e69fa922bb5a0b2ac3a0595b5be721893 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sat, 23 May 2015 15:57:52 -0400 Subject: [PATCH] Fixed broken quickmarks completion. --- qutebrowser/completion/models/urlmodel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qutebrowser/completion/models/urlmodel.py b/qutebrowser/completion/models/urlmodel.py index eacd1aebd..55b7c4ddb 100644 --- a/qutebrowser/completion/models/urlmodel.py +++ b/qutebrowser/completion/models/urlmodel.py @@ -43,6 +43,13 @@ class UrlCompletionModel(base.BaseCompletionModel): self._bookmark_cat = self.new_category("Bookmarks") self._history_cat = self.new_category("History") + quickmark_manager = objreg.get('quickmark-manager') + quickmarks = quickmark_manager.marks.items() + for qm_name, qm_url in quickmarks: + self._add_quickmark_entry(qm_name, qm_url) + quickmark_manager.added.connect(self.on_quickmark_added) + quickmark_manager.removed.connect(self.on_quickmark_removed) + bookmark_manager = objreg.get('bookmark-manager') bookmarks = bookmark_manager.bookmarks.items() for bm_url, bm_title in bookmarks: