From 60bc4ba71502715664f1af3b99980e52d63e258d Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 12 Nov 2015 17:03:45 +0100 Subject: [PATCH] DownloadItem: Fix initialization of m_currSpeed Fix showing invalid download speed in some cases. --- src/lib/downloads/downloaditem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/downloads/downloaditem.cpp b/src/lib/downloads/downloaditem.cpp index 30e833d89..448bb112d 100644 --- a/src/lib/downloads/downloaditem.cpp +++ b/src/lib/downloads/downloaditem.cpp @@ -55,6 +55,7 @@ DownloadItem::DownloadItem(QListWidgetItem *item, QWebEngineDownloadItem* downlo , m_validIcon(false) , m_downloading(false) , m_downloadStopped(false) + , m_currSpeed(0) , m_received(downloadItem->receivedBytes()) , m_total(downloadItem->totalBytes()) {