Replace != with (is not) when testing whether a model is new
This commit is contained in:
parent
2aef26c58b
commit
44411e02c6
@ -261,7 +261,7 @@ class CompletionView(QTreeView):
|
||||
return
|
||||
|
||||
old_model = self.model()
|
||||
if model != old_model:
|
||||
if model is not old_model:
|
||||
sel_model = self.selectionModel()
|
||||
|
||||
self.setModel(model)
|
||||
|
Loading…
Reference in New Issue
Block a user