Fixed download progress update for the first row

This commit is contained in:
Veloman Yunkan 2024-03-01 20:29:07 +04:00
parent b53042edd5
commit 087881d510

View File

@ -272,8 +272,7 @@ void ContentManagerModel::updateDownload(QString bookId)
if ( it != bookIdToRowMap.constEnd() ) {
const size_t row = it.value();
const QModelIndex rootNodeIndex = this->index(0, 0);
const QModelIndex newIndex = this->index(row, 5, rootNodeIndex);
const QModelIndex newIndex = this->index(row, 5);
emit dataChanged(newIndex, newIndex);
}
}