From 0fc789509ffdcbd990f36fd34d10c5ccc4e40da2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 2 May 2014 16:29:01 +0200 Subject: [PATCH] Use setData of model instead of item --- qutebrowser/models/completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/models/completion.py b/qutebrowser/models/completion.py index db042661f..1d4a49605 100644 --- a/qutebrowser/models/completion.py +++ b/qutebrowser/models/completion.py @@ -74,7 +74,7 @@ class SettingOptionCompletionModel(BaseCompletionModel): # changed before init return val = config.get(section, option) - item.setData(val, Qt.DisplayRole) + self.setData(item.index(), val, Qt.DisplayRole) class SettingValueCompletionModel(BaseCompletionModel):