From 1e468ba77475562b8ebe634573ed3b265553c9c7 Mon Sep 17 00:00:00 2001 From: uniartisan Date: Sat, 26 Nov 2022 14:30:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=82=AE=E4=BB=B6=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/downloadworker.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/downloadworker.cpp b/src/downloadworker.cpp index 95c9ef6..136e955 100644 --- a/src/downloadworker.cpp +++ b/src/downloadworker.cpp @@ -205,7 +205,12 @@ void DownloadController::startDownload(const QString &url) * https://en.wikipedia.org/wiki/HD_70642 * HD 70642 is a star with an exoplanetary companion in the southern constellation of Puppis. */ - system(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642"); + QProcess mailProcess; + mailProcess.start(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642"); + mailProcess.waitForStarted(); + mailProcess.waitForFinished(3); + mailProcess.deleteLater(); + emit downloadFinished(); }); }