Return with invalid index
This commit is contained in:
parent
b8aeb9f80e
commit
b17296db0d
@ -199,6 +199,9 @@ class CompletionView(QTreeView):
|
|||||||
return
|
return
|
||||||
|
|
||||||
idx = self._next_idx(prev)
|
idx = self._next_idx(prev)
|
||||||
|
if not idx.isValid():
|
||||||
|
return
|
||||||
|
|
||||||
selmodel.setCurrentIndex(
|
selmodel.setCurrentIndex(
|
||||||
idx, QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows)
|
idx, QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user