Commit 98300b9e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile qt6 error

parent d3b6c2b6
Pipeline #184010 passed with stage
in 47 seconds
......@@ -471,8 +471,11 @@ QString FileMetaDataProvider::label(const QString &metaDataLabel) const
// Have to construct a dummy URL for KProtocolInfo::extraFields...
QUrl url;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
url.setScheme(protocol.toString());
#else
url.setScheme(protocol);
#endif
const auto extraFields = KProtocolInfo::extraFields(url);
auto field = extraFields.value(extraNumber);
if (field.type != KProtocolInfo::ExtraField::Invalid) {
......
Supports Markdown
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