Added extra check so all the rows actually exists when showing the MethodWidget.
This commit is contained in:
parent
4d069179ec
commit
2e749773a1
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ void DeviceView::rowsUpdated ( const QModelIndex & /*parent*/, int start, int en
|
|||
return;
|
||||
}
|
||||
|
||||
if (end >= model->rowCount()) {
|
||||
end = model->rowCount() - 1;
|
||||
}
|
||||
|
||||
for (int i = start; i <= end; ++i) {
|
||||
QModelIndex index = model->index( i, 2, QModelIndex() );
|
||||
this->openPersistentEditor(index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue