From: Peter Penz Date: Sun, 2 Mar 2008 10:13:28 +0000 (+0000) Subject: fixed problems with wrong space information (I'll backport the fix to 4.0.x on Tuesda... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/820c4ae062b6ca026ce16cffa98c3bade607399e fixed problems with wrong space information (I'll backport the fix to 4.0.x on Tuesday - I'm currently out of office and don't have access to my 4.0.x repository) BUG: 153778 BUG: 156271 BUG: 155608 svn path=/trunk/KDE/kdebase/apps/; revision=781211 --- diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index 1d1ca0240..3a2f77aef 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -73,7 +73,7 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint, (kBAvailable != static_cast(maximum())); if (valuesChanged) { m_text = i18nc("@info:status", "%1 free", KIO::convertSizeFromKiB(kBAvailable)); - setMaximum(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); }