forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
5d660d7afe
commit
f7cbc513aa
@@ -77,7 +77,8 @@ FileDownloader::FileDownloader(QObject *parent)
|
||||
|
||||
FileDownloader::~FileDownloader()
|
||||
{
|
||||
m_tempFile.remove();
|
||||
if (m_tempFile.exists())
|
||||
m_tempFile.remove();
|
||||
}
|
||||
|
||||
void FileDownloader::start()
|
||||
@@ -111,7 +112,8 @@ void FileDownloader::start()
|
||||
|
||||
QNetworkReply::connect(reply, &QNetworkReply::finished, this, [this, reply]() {
|
||||
if (reply->error()) {
|
||||
m_tempFile.remove();
|
||||
if (m_tempFile.exists())
|
||||
m_tempFile.remove();
|
||||
qDebug() << Q_FUNC_INFO << m_url << reply->errorString();
|
||||
emit downloadFailed();
|
||||
} else {
|
||||
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user