diff --git a/src/views/draganddrophelper.cpp b/src/views/draganddrophelper.cpp --- a/src/views/draganddrophelper.cpp +++ b/src/views/draganddrophelper.cpp @@ -29,11 +29,11 @@ #include #include - bool DragAndDropHelper::urlListMatchesUrl(const QList& urls, const QUrl& destUrl) { - return std::find_if(urls.constBegin(), urls.constEnd(), [destUrl](const QUrl& url) { - return url.matches(destUrl, QUrl::StripTrailingSlash); + const QUrl& adjustedDestUrl = destUrl.adjusted(QUrl::StripTrailingSlash); + return std::find_if(urls.constBegin(), urls.constEnd(), [adjustedDestUrl](const QUrl& url) { + return adjustedDestUrl.matches(url, QUrl::StripTrailingSlash); }) != urls.constEnd(); }