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() ) { if ( it != bookIdToRowMap.constEnd() ) {
const size_t row = it.value(); const size_t row = it.value();
const QModelIndex rootNodeIndex = this->index(0, 0); const QModelIndex newIndex = this->index(row, 5);
const QModelIndex newIndex = this->index(row, 5, rootNodeIndex);
emit dataChanged(newIndex, newIndex); emit dataChanged(newIndex, newIndex);
} }
} }