Details
-
Sub-task
-
Resolution: Done
-
P1: Critical
-
None
-
83c9ebbd6692cde99ee692e6549c591100f12545
Description
QSqlQueryModel::setQuery uses the deprecated QAbstractItemModel::reset()
It must be split into beginResetModel() and endResetModel().
It is not obvious how to do that. The cde is not clear and it seems that the model is reset even if cases it should not be.
(There is no point calling begin/endRemoveRows if the model is going to be reset in the next line)