[dolphin] [Bug 505179] Only 30 recent files are shown
Thomas Bertels
bugzilla_noreply at kde.org
Tue Jun 10 09:33:49 BST 2025
https://bugs.kde.org/show_bug.cgi?id=505179
--- Comment #2 from Thomas Bertels <tbertels at gmail.com> ---
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.
More information about the kfm-devel
mailing list