mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
FolderStatusModel: Fix beginInsertRow/endInsertRow
We need to do the change between the begin and the end call so the selection don't get broken
This commit is contained in:
parent
524220d090
commit
9e895a6ecc
1 changed files with 5 additions and 2 deletions
|
@ -1076,11 +1076,14 @@ void FolderStatusModel::slotShowFetchProgress()
|
|||
auto idx = it.key();
|
||||
auto* info = infoForIndex(idx);
|
||||
if (info && info->_fetching) {
|
||||
if (!info->hasLabel()) {
|
||||
bool add = !info->hasLabel();
|
||||
if (add) {
|
||||
beginInsertRows(idx, 0, 0);
|
||||
endInsertRows();
|
||||
}
|
||||
info->_fetchingLabel = true;
|
||||
if (add) {
|
||||
endInsertRows();
|
||||
}
|
||||
}
|
||||
it.remove();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue