mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Prevents warnings
Warnings such as : kf5.kio.core: Invalid URL: QUrl("") It happened for instance with recentlyused:/ ioslave
This commit is contained in:
parent
8aa7cde289
commit
770d083182
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue