Commit 5a869190 authored by Alexander Potashev's avatar Alexander Potashev

kcm baloo: Fix extraction of folder basename for error message

Summary: Fix extraction of folder basename when it has a trailing slash.

Test Plan: Manually tested by me.

Reviewers: plasma-devel, davidedmundson

Reviewed By: davidedmundson

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8325
parent 88ed8b3d
......@@ -236,7 +236,7 @@ void FolderSelectionWidget::slotAddButtonClicked()
url = existingUrl;
deleteList << item;
QString name = QUrl::fromLocalFile(url).fileName();
QString name = QUrl::fromLocalFile(url).adjusted(QUrl::StripTrailingSlash).fileName();
showMessage(i18n("Folder's parent %1 is already excluded").arg(name));
}
}
......
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