Skip to content
Permalink
Browse files

Fix progress bar for file downloader alg

  • Loading branch information
nyalldawson committed Oct 25, 2017
1 parent e24333a commit c728a35c4b7cd11282be602eda8c87967ed767f6
@@ -120,7 +120,7 @@ void QgsFileDownloaderAlgorithm::receiveProgressFromDownloader( qint64 bytesRece
}
}

QString QgsFileDownloaderAlgorithm::humanSize( qint64 &bytes )
QString QgsFileDownloaderAlgorithm::humanSize( qint64 bytes )
{
QStringList list;
list << "KB" << "MB" << "GB" << "TB";
@@ -54,7 +54,7 @@ class QgsFileDownloaderAlgorithm : public QgsProcessingAlgorithm, public QObject
QString mLastReport;
void reportErrors( QStringList errors );
void receiveProgressFromDownloader( qint64 bytesReceived, qint64 bytesTotal );
static QString humanSize( qint64 &bytes );
static QString humanSize( qint64 bytes );
void sendProgressFeedback();
};

0 comments on commit c728a35

Please sign in to comment.
You can’t perform that action at this time.