[app] Fixed beginResetModel/endInsertRows mismatch in BooksImportModel

This commit is contained in:
Slava Monich 2016-10-17 02:02:37 +03:00
parent 0f492594c7
commit 1d4fdeaea9

View file

@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* * Neither the name of Nemo Mobile nor the names of its contributors * * Neither the name of Jolla Ltd nor the names of its contributors
* may be used to endorse or promote products derived from this * may be used to endorse or promote products derived from this
* software without specific prior written permission. * software without specific prior written permission.
* *
@ -322,7 +322,7 @@ void BooksImportModel::refresh()
beginResetModel(); beginResetModel();
qDeleteAll(iList); qDeleteAll(iList);
iList.clear(); iList.clear();
endInsertRows(); endResetModel();
Q_EMIT countChanged(); Q_EMIT countChanged();
} }