Commit 09ae7c38 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Strip trailing slash for fallback URL path

Normally you wouldn't see this because a copy job has a `destUrl`
(which is why I didn't notice) but when removing the filename to "go up"
we need to strip the trailing slash, too.

(cherry picked from commit 018fc0de)
parent 9fcfc547
......@@ -94,7 +94,7 @@ QUrl JobPrivate::destUrl() const
QUrl url = m_destUrl;
// In case of a single file and no destUrl, try using the second label (most likely "Destination")...
if (!url.isValid() && m_totalFiles == 1) {
url = localFileOrUrl(m_descriptionValue2).adjusted(QUrl::RemoveFilename);
url = localFileOrUrl(m_descriptionValue2).adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash);
return url;
Markdown is supported
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