QNetworkReplyFileImpl: Fix typo
Causes emission to not happen and prints a warning Pick-to: 5.15 Change-Id: Ie80cc89549741079c243e6fd4269f793bccca9fd Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
da1b0d2d6a
commit
cbb9c53704
@ -134,7 +134,7 @@ QNetworkReplyFileImpl::QNetworkReplyFileImpl(QNetworkAccessManager *manager, con
|
||||
if (fi.isDir()) {
|
||||
QString msg = QCoreApplication::translate("QNetworkAccessFileBackend", "Cannot open %1: Path is a directory").arg(url.toString());
|
||||
setError(QNetworkReply::ContentOperationNotPermittedError, msg);
|
||||
QMetaObject::invokeMethod(this, "errorOccured", Qt::QueuedConnection,
|
||||
QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
|
||||
Q_ARG(QNetworkReply::NetworkError, QNetworkReply::ContentOperationNotPermittedError));
|
||||
QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user