diff options
| author | David Faure <[email protected]> | 2020-12-15 18:45:20 +0100 |
|---|---|---|
| committer | David Faure <[email protected]> | 2020-12-15 18:45:20 +0100 |
| commit | da636bf513dcd15fbf7d8be13dd9315ed73311e9 (patch) | |
| tree | 8c6d91247f87fa87e6812cc7650f07f3f780d00f | |
| parent | a4a7b5e8af46a8dd44b08fae497cec73bc73579f (diff) | |
Fix KIO warning when URL is empty
| -rw-r--r-- | src/panels/places/placesitemlistwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/places/placesitemlistwidget.cpp b/src/panels/places/placesitemlistwidget.cpp index 38bc13438..c9de3e6cf 100644 --- a/src/panels/places/placesitemlistwidget.cpp +++ b/src/panels/places/placesitemlistwidget.cpp @@ -57,8 +57,8 @@ void PlacesItemListWidget::updateCapacityBar() } const QUrl url = data().value("url").toUrl(); - if (m_freeSpaceInfo.job || !m_freeSpaceInfo.lastUpdated.hasExpired()) { - // Job running or cache is still valid. + if (url.isEmpty() || m_freeSpaceInfo.job || !m_freeSpaceInfo.lastUpdated.hasExpired()) { + // No url, job running or cache is still valid. return; } |
