I have this code that crashes on endResetModel. I use static build and the crash only happens on some dude's machine, couldn't reproduce it on my 3 different machines whatever I tried. Is there something wrong with this code that I don't see? The data list is very small.

Qt Code:
  1. beginResetModel();
  2.  
  3. getDataList().clear();
  4.  
  5. for (QVariantList record : recordList)
  6. {
  7. getDataList() << QPair<QString, int>(record.at(0).toString(), record.at(1).toInt());
  8. }
  9.  
  10. endResetModel();
To copy to clipboard, switch view to plain text mode