diff options
| author | Méven Car <[email protected]> | 2020-05-29 19:35:02 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-05-31 21:19:09 +0000 |
| commit | 770d083182fdcc85c5aad7d686cc5f4aa772f3e7 (patch) | |
| tree | 12165ae9bd2f59e93a27df3f78de37a19cdb1aa7 /src | |
| parent | 8aa7cde289d8e432016c9961527a7daa077c7389 (diff) | |
Prevents warnings
Warnings such as :
kf5.kio.core: Invalid URL: QUrl("")
It happened for instance with recentlyused:/ ioslave
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/dolphinview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index fc036bce2..c827f5768 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -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(); |
