From 37023fe896711df2c740743b93d048c1d5ae1574 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Oct 2014 12:16:05 +0200 Subject: [PATCH] Improved qmarks model filling thx to the fix from The-Compiler! --- qutebrowser/models/completion.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/qutebrowser/models/completion.py b/qutebrowser/models/completion.py index fe2404235..887b3a793 100644 --- a/qutebrowser/models/completion.py +++ b/qutebrowser/models/completion.py @@ -205,14 +205,7 @@ class QuickmarkCompletionModel(basecompletion.BaseCompletionModel): super().__init__(parent) qmlist = [] - for qm in quickmarks.marks.items(): - # strange. in qm[0] is the first word of the quickmark, - # in qm[1] the rest. I have to split the url manually. - # omg help wtf bbq! FIXME - - qm_splitter = str(qm[0] + ' ' + qm[1]).split(' ') - qm_name = ' '.join(qm_splitter[:-1]) - qm_url = qm_splitter[-1] + for qm_name, qm_url in quickmarks.marks.items(): qmlist.append((qm_url, qm_name)) cat = self.new_category("Quickmarks")