From e92c493b07cabbdb0db4b0f5162cc87d74f9008b Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sat, 30 May 2015 12:37:21 -0400 Subject: [PATCH] Fixed bug making the application crash. --- qutebrowser/completion/models/urlmodel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/completion/models/urlmodel.py b/qutebrowser/completion/models/urlmodel.py index 27ff67e39..10d4fb9fd 100644 --- a/qutebrowser/completion/models/urlmodel.py +++ b/qutebrowser/completion/models/urlmodel.py @@ -103,8 +103,8 @@ class UrlCompletionModel(base.BaseCompletionModel): """ index0 = self.index(row, 0, parent) index1 = self.index(row, 1, parent) - url = self.data(index0) - title = self.data(index1) + url = self.data(index0) or '' + title = self.data(index1) or '' return pattern in url.casefold() or pattern in title.casefold() @config.change_filter('completion', 'timestamp-format')