diff options
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index 658b8196a..80a17af2a 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -430,8 +430,8 @@ void DivelogsDeWebServices::downloadError(QNetworkReply::NetworkError) void DivelogsDeWebServices::updateProgress(qreal current, qreal total) { - ui.progressBar->setRange(0, total); - ui.progressBar->setValue(current); + ui.progressBar->setRange(0, lrint(total)); + ui.progressBar->setValue(lrint(current)); ui.status->setText(tr("Transferring data...")); } |