diff options
| author | David Murray <[email protected]> | 2021-10-30 16:39:06 +0100 |
|---|---|---|
| committer | David Murray <[email protected]> | 2021-10-30 16:39:06 +0100 |
| commit | 769d1470267247efdffe8b9a2464f21c905d195d (patch) | |
| tree | df384d230cb2078c6b9ad4ecb8e8f29cc976f69f /src/views/viewproperties.cpp | |
| parent | c1200b3ddb9bc9a2ded9d4718e88f0284fa665d2 (diff) | |
Add support for recentlyused: kio to view properties.
Add "recentlyused" to the URL schemes recognised by ViewProperties as
needing special handling. User-set view properties for the
recentlyused: kio are then saved under view_properties/recentlyused in
dolphin's app data directory.
(Previously, the recentlyused: kio was treated, by default, as if it was
a remote location for the purposes of view properties. Since it
displays somewhat specialised results (files/directories from various
locations), users might find it useful to set particular view properties
and have them remembered.)
Diffstat (limited to 'src/views/viewproperties.cpp')
| -rw-r--r-- | src/views/viewproperties.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp index 4b8d017c7..2bfdfe81b 100644 --- a/src/views/viewproperties.cpp +++ b/src/views/viewproperties.cpp @@ -55,6 +55,9 @@ ViewProperties::ViewProperties(const QUrl& url) : } else if (url.scheme() == QLatin1String("recentdocuments")) { m_filePath = destinationDir(QStringLiteral("recentdocuments")); useRecentDocumentsView = true; + } else if (url.scheme() == QLatin1String("recentlyused")) { + m_filePath = destinationDir(QStringLiteral("recentlyused")); + useRecentDocumentsView = true; } else if (url.isLocalFile()) { m_filePath = url.toLocalFile(); |
