[dolphin] [Bug 505179] Only 30 recent files are shown

"Thomas Bertels" <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=505179

--- Comment #2 from Thomas Bertels <[email protected]> ---
The limit is set to 30 in kio-extras when no limit value can be parsed:
https://github.com/KDE/kio-extras/blob/7fadfd704993626647384bae2c3fa7d07b29ee34/recentlyused/recentlyused.cpp#L68

int queryLimit(QUrl url)
{
    const auto urlQuery = QUrlQuery(url);
    // limit parameter
    if (urlQuery.hasQueryItem(QStringLiteral("limit"))) {
        const auto limitValue =
urlQuery.queryItemValue(QStringLiteral("limit"));
        bool parseOk;
        const auto limitInt = limitValue.toInt(&parseOk);
        if (parseOk) {
            return limitInt;
        }
    }
    return 30;
}

queryLimit(QUrl url) is called in
KIO::WorkerResult RecentlyUsed::listDir(const QUrl &url)
https://github.com/KDE/kio-extras/blob/7fadfd704993626647384bae2c3fa7d07b29ee34/recentlyused/recentlyused.cpp#L217

and listDir may be called by
ForwardingWorkerBase::listDir(QUrl::fromLocalFile(path));
https://github.com/KDE/kio-extras/blob/7fadfd704993626647384bae2c3fa7d07b29ee34/activities/KioActivities.cpp#L163

If that's case, QUrl::fromLocalFile(path) may be the culprit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.