Fixed a compilation error when using Qt 6

This commit is contained in:
Veloman Yunkan 2024-11-06 13:14:53 +04:00
parent 1ef690d390
commit 17a1303e91

View File

@ -86,7 +86,7 @@ void KProfile::startDownload(QWebEngineDownloadRequest* download)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
connect(download, &QWebEngineDownloadItem::finished, this, &KProfile::downloadFinished);
#else
connect(download, &QWebEngineDownloadRequest::isFinished, this, &KProfile::downloadFinished);
connect(download, &QWebEngineDownloadRequest::isFinishedChanged, this, &KProfile::downloadFinished);
#endif
download->accept();
}