Cleanup ComputerModel and remove root Frame from PcView
This commit is contained in:
parent
b0151da455
commit
f83c13ad85
3 changed files with 80 additions and 84 deletions
|
|
@ -27,10 +27,8 @@ QVariant ComputerModel::data(const QModelIndex& index, int role) const
|
|||
return QVariant();
|
||||
}
|
||||
}
|
||||
else if (index.row() > m_Computers.count()) {
|
||||
qWarning() << "Index out of bounds: " << index.row();
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
Q_ASSERT(index.row() < m_Computers.count());
|
||||
|
||||
NvComputer* computer = m_Computers[index.row()];
|
||||
QReadLocker lock(&computer->lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue