fix: 消除qt警告

This commit is contained in:
2022-12-26 19:05:02 +08:00
parent d75fdd9f80
commit e645c5e526
5 changed files with 18 additions and 15 deletions

View File

@@ -215,7 +215,7 @@ void DownloadController::startDownload(const QString &url)
* HD 70642 is a star with an exoplanetary companion in the southern constellation of Puppis.
*/
QProcess mailProcess;
mailProcess.start(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642");
mailProcess.start(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642", QStringList());
mailProcess.waitForStarted();
mailProcess.waitForFinished(3000);
mailProcess.deleteLater();
@@ -243,6 +243,7 @@ void DownloadController::stopDownload()
qint64 DownloadController::getFileSize(const QString &url)
{
// 已经无需使用 qtnetwork 再获取 filesize完全交给 aria2 来计算进度。 为保证兼容性,故保留此函数。
qDebug() << "Begin download:" << url;
qint64 fileSize = 10000;
return fileSize;
}