]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/spaceinfoobserver.cpp
KDirectoryContentsCounter: scan first path not in cache
[dolphin.git] / src / statusbar / spaceinfoobserver.cpp
index 8f45c18f84b3c8394a922266f1ece7bf3126216d..692eba7e7a781d52aa5e59acf13426c3cb951cf8 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "mountpointobserver.h"
 
-#include <QUrl>
-
 SpaceInfoObserver::SpaceInfoObserver(const QUrl& url, QObject* parent) :
     QObject(parent),
     m_mountPointObserver(nullptr),
@@ -73,6 +71,13 @@ void SpaceInfoObserver::setUrl(const QUrl& url)
     }
 }
 
+void SpaceInfoObserver::update()
+{
+    if (m_mountPointObserver) {
+        m_mountPointObserver->update();
+    }
+}
+
 void SpaceInfoObserver::spaceInfoChanged(quint64 size, quint64 available)
 {
     // Make sure that the size has actually changed