Fix KIO warning when URL is empty

This commit is contained in:
David Faure 2020-12-15 18:45:20 +01:00
parent a4a7b5e8af
commit da636bf513

View 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;
}