Commit 2a969fec authored by Méven Car's avatar Méven Car
Browse files

recentlyused: ensure to treat as root urls of type /files/?

parent 10f747f1
Pipeline #184268 passed with stage
in 2 minutes and 53 seconds
......@@ -36,7 +36,8 @@ QList<QAction *> ForgetFileItemAction::actions(const KFileItemListProperties &fi
if (fileItems.count() == 1) {
const auto path = url.path();
// exclude "root" folders of recentlyused:/
if (path == QStringLiteral("/") ||
if (path.endsWith(QStringLiteral("/")) ||
path == QStringLiteral("/") ||
path == QStringLiteral("/files") ||
path == QStringLiteral("/locations")) {
......
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