[app] Fixed beginResetModel/endInsertRows mismatch in BooksImportModel
This commit is contained in:
parent
0f492594c7
commit
1d4fdeaea9
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue