Added extra check so all the rows actually exists when showing the MethodWidget.

This commit is contained in:
Micke Prag 2010-06-16 15:38:29 +00:00
parent 4d069179ec
commit 2e749773a1

View file

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