mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix KIO warning when URL is empty
This commit is contained in:
parent
a4a7b5e8af
commit
da636bf513
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue