Skip to content

Commit

Permalink
Fix KIO warning when URL is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaure committed Dec 15, 2020
1 parent a4a7b5e commit da636bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panels/places/placesitemlistwidget.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit da636bf

Please sign in to comment.