Fixed bug making the application crash.

This commit is contained in:
Antoni Boucher 2015-05-30 12:37:21 -04:00
parent cbc4ec6531
commit e92c493b07

View File

@ -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')