ProtocolsModel bug fixes

This commit is contained in:
pokamest 2021-11-17 23:42:17 +03:00
parent 3a49d5fdc4
commit e0f42f4a0a
5 changed files with 17 additions and 8 deletions

View file

@ -24,7 +24,7 @@ QHash<int, QByteArray> ProtocolsModel::roleNames() const {
QVariant ProtocolsModel::data(const QModelIndex &index, int role) const
{
if (!index.isValid() || index.row() < 0
|| index.row() >= ContainerProps::allContainers().size()) {
|| index.row() >= ProtocolProps::allProtocols().size()) {
return QVariant();
}