Guarded for a particular bug when you select an item in the auto complete, then hit space
This commit is contained in:
parent
1d11564437
commit
4e4378811c
|
|
@ -171,7 +171,8 @@ void CommandLineEdit::autoCompleteUpdate(const QString text)
|
|||
}
|
||||
|
||||
// Restore index
|
||||
mCompleter->popup()->setCurrentIndex(modelIndex);
|
||||
if(mCompleter->popup()->model()->rowCount() > modelIndex.row())
|
||||
mCompleter->popup()->setCurrentIndex(modelIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue