mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Fixed a compilation error when using Qt 6
This commit is contained in:
parent
1ef690d390
commit
17a1303e91
@ -37,7 +37,7 @@ QString askForSaveFilePath(const QString& suggestedName)
|
||||
|
||||
if (fileName.isEmpty())
|
||||
return QString();
|
||||
|
||||
|
||||
if (!fileName.endsWith(extension)) {
|
||||
fileName.append(extension);
|
||||
}
|
||||
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user