> Perhaps insertRow() has undefined behavior when the given row index is greater than rowCount()?
The behaviour is actually well defined: It does nothing.
As the assumption that at each iteration of the loop there are at least "i" rows is wrong, it crashes.
Maybe the best option is to just skip jobs with duplicate ids?
> Perhaps insertRow() has undefined behavior when the given row index is greater than rowCount()?
The behaviour is actually well defined: It does nothing.
As the assumption that at each iteration of the loop there are at least "i" rows is wrong, it crashes.
Maybe the best option is to just skip jobs with duplicate ids?