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

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) ...@@ -101,7 +101,7 @@ void RecentDocuments::match(Plasma::RunnerContext &context)
} }
match.setText(name); 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); match.setSubtext(destUrlString);
context.addMatch(match); context.addMatch(match);
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