From 17a1303e9111cd66c111b49b662a6018aa10b96e Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Wed, 6 Nov 2024 13:14:53 +0400 Subject: [PATCH] Fixed a compilation error when using Qt 6 --- src/kprofile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kprofile.cpp b/src/kprofile.cpp index 1567098..fdf7cbc 100644 --- a/src/kprofile.cpp +++ b/src/kprofile.cpp @@ -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(); }