ProtocolsModel bug fixes
This commit is contained in:
parent
3a49d5fdc4
commit
e0f42f4a0a
5 changed files with 17 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue