Commit 2370b662 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Recent Documents Runner: Strip trailing slash in subtext

Show a nicer "~/Documents" instead of "~/Documents/" and consistent with
what the Baloo Runner does
parent 609a8ad9
......@@ -101,7 +101,7 @@ void RecentDocuments::match(Plasma::RunnerContext &context)
}
match.setText(name);
QString destUrlString = KShell::tildeCollapse(url.adjusted(QUrl::RemoveFilename).path());
QString destUrlString = KShell::tildeCollapse(url.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash).path());
match.setSubtext(destUrlString);
context.addMatch(match);
......
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