diff --git a/src/filewidgets/kfileplacesitem.cpp b/src/filewidgets/kfileplacesitem.cpp --- a/src/filewidgets/kfileplacesitem.cpp +++ b/src/filewidgets/kfileplacesitem.cpp @@ -110,7 +110,7 @@ m_groupName = i18nc("@item", "Remote"); break; case KFilePlacesModel::RecentlySavedType: - m_groupName = i18nc("@item", "Recently Saved"); + m_groupName = i18nc("@item", "Recent"); break; case KFilePlacesModel::SearchForType: m_groupName = i18nc("@item", "Search For"); @@ -151,7 +151,8 @@ { if (!isDevice()) { const QString protocol = bookmark().url().scheme(); - if (protocol == QLatin1String("timeline")) { + if (protocol == QLatin1String("timeline") || + protocol == QLatin1String("recentlyused")) { return KFilePlacesModel::RecentlySavedType; } diff --git a/src/filewidgets/kfileplacesmodel.cpp b/src/filewidgets/kfileplacesmodel.cpp --- a/src/filewidgets/kfileplacesmodel.cpp +++ b/src/filewidgets/kfileplacesmodel.cpp @@ -317,18 +317,25 @@ // will always return false, which opening/closing all the time the open/save dialog would case the // bookmarks to be added once each time, having lots of times each bookmark. (ereslibre) d->bookmarkManager->saveAs(file); + + // Add a Recently Used entry if available (it comes from kio-extras) + if (KProtocolInfo::isKnownProtocol("recentlyused")) { + KFilePlacesItem::createSystemBookmark(d->bookmarkManager, + QStringLiteral("Recently Used"), I18N_NOOP2("KFile System Bookmarks", "Recently Used"), + QUrl(QStringLiteral("recentlyused:/")), QStringLiteral("document-open-recent-symbolic")); + } } // if baloo is enabled, add new urls even if the bookmark file is not empty if (d->fileIndexingEnabled && root.metaDataItem(QStringLiteral("withBaloo")) != QLatin1String("true")) { root.setMetaDataItem(QStringLiteral("withBaloo"), QStringLiteral("true")); KFilePlacesItem::createSystemBookmark(d->bookmarkManager, - QStringLiteral("Today"), I18N_NOOP2("KFile System Bookmarks", "Today"), + QStringLiteral("Modified Today"), I18N_NOOP2("KFile System Bookmarks", "Today"), QUrl(QStringLiteral("timeline:/today")), QStringLiteral("go-jump-today")); KFilePlacesItem::createSystemBookmark(d->bookmarkManager, - QStringLiteral("Yesterday"), I18N_NOOP2("KFile System Bookmarks", "Yesterday"), + QStringLiteral("Modified Yesterday"), I18N_NOOP2("KFile System Bookmarks", "Yesterday"), QUrl(QStringLiteral("timeline:/yesterday")), QStringLiteral("view-calendar-day")); KFilePlacesItem::createSystemBookmark(d->bookmarkManager, QStringLiteral("Documents"), I18N_NOOP2("KFile System Bookmarks", "Documents"),