1
0
Fork 0

Guarded for a particular bug when you select an item in the auto complete, then hit space

This commit is contained in:
justin 2016-07-09 11:33:22 -06:00
parent 1d11564437
commit 4e4378811c
1 changed files with 2 additions and 1 deletions

View File

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