Commit 47fa3039 authored by Laurent Montel's avatar Laurent Montel
Browse files

This method was removed in qt6

parent ac4f61f5
Pipeline #246378 passed with stage
in 20 minutes and 58 seconds
......@@ -21,7 +21,12 @@ using namespace AdBlock;
static QString toSecondLevelDomain(const QUrl &url)
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
const QString topLevelDomain = url.topLevelDomain();
#else
qWarning() << "QT6! topLevelDomain not ported";
const QString topLevelDomain = url.toString();
#endif
const QString urlHost = url.host();
if (topLevelDomain.isEmpty() || urlHost.isEmpty()) {
......
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