Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Remove wrong emit usages

parent def2cc9b
......@@ -1392,7 +1392,7 @@ void sftpProtocol::open(const QUrl &url, QIODevice::OpenMode mode) {
QByteArray fileData = QByteArray::fromRawData(buffer.data(), bytesRead);
QMimeDatabase db;
QMimeType mime = db.mimeTypeForFileNameAndData(mOpenUrl.fileName(), fileData);
emit mimeType(mime.name());
mimeType(mime.name());
// Go back to the beginning of the file.
sftp_rewind(mOpenFile);
......@@ -1536,10 +1536,10 @@ sftpProtocol::StatusCode sftpProtocol::sftpGet(const QUrl& url, int& errorCode,
QMimeDatabase db;
QMimeType mime = db.mimeTypeForFileNameAndData(url.fileName(), QByteArray(mimeTypeBuf, bytesread));
if (!mime.isDefault()) {
emit mimeType(mime.name());
mimeType(mime.name());
} else {
mime = db.mimeTypeForUrl(url);
emit mimeType(mime.name());
mimeType(mime.name());
}
sftp_rewind(file);
}
......@@ -1780,7 +1780,7 @@ sftpProtocol::StatusCode sftpProtocol::sftpPut(const QUrl& url, int permissions,
result = -1;
} else {
totalBytesSent += bytesWritten;
emit processedSize(totalBytesSent);
processedSize(totalBytesSent);
}
} // result
} while (result > 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment