Replace != with (is not) when testing whether a model is new

This commit is contained in:
Marshall Lochbaum 2016-08-22 13:02:13 -04:00
parent 2aef26c58b
commit 44411e02c6

View File

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