Fixed broken quickmarks completion.

This commit is contained in:
Antoni Boucher 2015-05-23 15:57:52 -04:00
parent 2c0c2e220e
commit 0ee7e40e69

View File

@ -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: