mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Allow statusbar and information panel to stat with KIO::StatRecursiveSize
Summary: Needed after D28901 to ensure we get the UDS_RECURSIVE_SIZE out of the stat calls. Test Plan: Trash size is visible in status bar and information panel again. Reviewers: ngraham, dfaure, #dolphin Reviewed By: dfaure Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D28950
This commit is contained in:
parent
196f4553e6
commit
b274b6145b
|
@ -248,7 +248,7 @@ void InformationPanel::showItemInfo()
|
||||||
if (item.isNull()) {
|
if (item.isNull()) {
|
||||||
// No item is hovered and no selection has been done: provide
|
// No item is hovered and no selection has been done: provide
|
||||||
// an item for the currently shown directory.
|
// an item for the currently shown directory.
|
||||||
m_folderStatJob = KIO::stat(url(), KIO::HideProgressInfo);
|
m_folderStatJob = KIO::statDetails(url(), KIO::StatJob::SourceSide, KIO::StatDefaultDetails | KIO::StatRecursiveSize, KIO::HideProgressInfo);
|
||||||
if (m_folderStatJob->uiDelegate()) {
|
if (m_folderStatJob->uiDelegate()) {
|
||||||
KJobWidgets::setWindow(m_folderStatJob, this);
|
KJobWidgets::setWindow(m_folderStatJob, this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1497,7 +1497,7 @@ void DolphinView::calculateItemCount(int& fileCount,
|
||||||
bool countFileSize = true;
|
bool countFileSize = true;
|
||||||
|
|
||||||
// In case we have a precomputed value
|
// In case we have a precomputed value
|
||||||
const auto job = KIO::stat(m_model->rootItem().url());
|
const auto job = KIO::statDetails(m_model->rootItem().url(), KIO::StatJob::SourceSide, KIO::StatRecursiveSize);
|
||||||
job->exec();
|
job->exec();
|
||||||
const auto entry = job->statResult();
|
const auto entry = job->statResult();
|
||||||
if (entry.contains(KIO::UDSEntry::UDS_RECURSIVE_SIZE)) {
|
if (entry.contains(KIO::UDSEntry::UDS_RECURSIVE_SIZE)) {
|
||||||
|
|
Loading…
Reference in a new issue