From 087881d51079da395321fb13d2e782e43e465b8a Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Fri, 1 Mar 2024 20:29:07 +0400 Subject: [PATCH] Fixed download progress update for the first row --- src/contentmanagermodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contentmanagermodel.cpp b/src/contentmanagermodel.cpp index 846f91e..a2f95db 100644 --- a/src/contentmanagermodel.cpp +++ b/src/contentmanagermodel.cpp @@ -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); } }