QmlDesigner: Add missing context pointer connect

* Add missing context pointer in connect statement
* Fix console output "QFile::remove: Empty or null file name"

Task-number: QDS-6170
Change-Id: I31f671dc1422c6b90aff81252f4bc4cf2c34e7d1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2022-02-17 10:14:20 +01:00
committed by Henning Gründl
parent 5d660d7afe
commit f7cbc513aa

View File

@@ -77,6 +77,7 @@ FileDownloader::FileDownloader(QObject *parent)
FileDownloader::~FileDownloader()
{
if (m_tempFile.exists())
m_tempFile.remove();
}
@@ -111,6 +112,7 @@ void FileDownloader::start()
QNetworkReply::connect(reply, &QNetworkReply::finished, this, [this, reply]() {
if (reply->error()) {
if (m_tempFile.exists())
m_tempFile.remove();
qDebug() << Q_FUNC_INFO << m_url << reply->errorString();
emit downloadFailed();
@@ -411,7 +413,7 @@ void FileExtractor::extract()
emit detailedTextChanged();
});
QObject::connect(archive, &Utils::Archive::finished, [this](bool ret) {
QObject::connect(archive, &Utils::Archive::finished, this, [this](bool ret) {
m_finished = ret;
m_timer.stop();