]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix KIO warning when URL is empty
authorDavid Faure <faure@kde.org>
Tue, 15 Dec 2020 17:45:20 +0000 (18:45 +0100)
committerDavid Faure <faure@kde.org>
Tue, 15 Dec 2020 17:45:20 +0000 (18:45 +0100)
src/panels/places/placesitemlistwidget.cpp

index 38bc13438c6335b8182f61e952e475fe09e20e9f..c9de3e6cf571e59527237985896e0695c80c07ea 100644 (file)
@@ -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;
     }