Fixed bug making the application crash.
This commit is contained in:
parent
cbc4ec6531
commit
e92c493b07
@ -103,8 +103,8 @@ class UrlCompletionModel(base.BaseCompletionModel):
|
|||||||
"""
|
"""
|
||||||
index0 = self.index(row, 0, parent)
|
index0 = self.index(row, 0, parent)
|
||||||
index1 = self.index(row, 1, parent)
|
index1 = self.index(row, 1, parent)
|
||||||
url = self.data(index0)
|
url = self.data(index0) or ''
|
||||||
title = self.data(index1)
|
title = self.data(index1) or ''
|
||||||
return pattern in url.casefold() or pattern in title.casefold()
|
return pattern in url.casefold() or pattern in title.casefold()
|
||||||
|
|
||||||
@config.change_filter('completion', 'timestamp-format')
|
@config.change_filter('completion', 'timestamp-format')
|
||||||
|
Loading…
Reference in New Issue
Block a user