]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbarspaceinfo.cpp
* changed "Click to add comment..." to simply "Add comment..." for consistency with...
[dolphin.git] / src / statusbarspaceinfo.cpp
index 1d1ca0240dd4978298d8db239b05adf1fd22b7de..8da3dc9472c3f0a283b0be17109cc228419bee99 100644 (file)
@@ -72,8 +72,8 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint,
     const bool valuesChanged = (kBUsed != static_cast<quint64>(value())) ||
                                (kBAvailable != static_cast<quint64>(maximum()));
     if (valuesChanged) {
-        m_text = i18nc("@info:status", "%1 free", KIO::convertSizeFromKiB(kBAvailable));
-        setMaximum(kBAvailable);
+        m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSizeFromKiB(kBAvailable));
+        setMaximum(kBSize);
         setValue(kBUsed);
     }
 }
@@ -82,6 +82,8 @@ void StatusBarSpaceInfo::refresh()
 {
     // KDiskFreeSpace is for local paths only
     if (!m_url.isLocalFile()) {
+        m_text = i18nc("@info:status", "Unknown size");
+        update();
         return;
     }
 
@@ -114,6 +116,7 @@ void StatusBarSpaceInfo::showGettingSizeInfo()
 {
     if (m_gettingSize) {
         m_text = i18nc("@info:status", "Getting size...");
+        update();
         setMinimum(0);
         setMaximum(0);
     }