]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbarspaceinfo.cpp
Group classes into folders, Dolphin is too big in the meantime for having a flat...
[dolphin.git] / src / statusbarspaceinfo.cpp
index ba37a82a585feea13b994146b585c18a55dade26..33017f02bc1b853873b144408e9be7f9708258dc 100644 (file)
@@ -56,6 +56,7 @@ void StatusBarSpaceInfo::showEvent(QShowEvent* event)
 {
     KCapacityBar::showEvent(event);
     if (!event->spontaneous()) {
+        refresh();
         m_timer->start(10000);
     }
 }
@@ -71,7 +72,7 @@ void StatusBarSpaceInfo::refresh()
     if (!isVisible()) {
         return;
     }
-    
+
     // KDiskFreeSpace is for local paths only
     if (!m_url.isLocalFile()) {
         setText(i18nc("@info:status", "Unknown size"));
@@ -100,7 +101,7 @@ void StatusBarSpaceInfo::refresh()
     if (valuesChanged) {
         setText(i18nc("@info:status Free disk space", "%1 free",
                 KIO::convertSize(job.available())));
-        
+
         setUpdatesEnabled(false);
         m_kBSize = kBSize;
         setValue(kBSize > 0 ? (kBUsed * 100) / kBSize : 0);