Commit 770d0831 authored by Méven Car's avatar Méven Car Committed by Elvis Angelaccio
Browse files

Prevents warnings

Warnings such as :
kf5.kio.core: Invalid URL: QUrl("")

It happened for instance with recentlyused:/ ioslave
parent 8aa7cde2
......@@ -1522,6 +1522,10 @@ void DolphinView::calculateItemCount(int& fileCount,
bool countFileSize = true;
if (!m_model->rootItem().url().isValid()) {
return;
}
// In case we have a precomputed value
const auto job = KIO::statDetails(m_model->rootItem().url(), KIO::StatJob::SourceSide, KIO::StatRecursiveSize, KIO::HideProgressInfo);
job->exec();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment