diff options
| author | Peter Penz <[email protected]> | 2008-03-02 10:13:28 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-02 10:13:28 +0000 |
| commit | 820c4ae062b6ca026ce16cffa98c3bade607399e (patch) | |
| tree | eddeeb82b3ecc0c5cd38453ffbe69b99c5149264 /src/statusbarspaceinfo.cpp | |
| parent | aa62472fc85476b9b6553c749c3ba40f0646d598 (diff) | |
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
Diffstat (limited to 'src/statusbarspaceinfo.cpp')
| -rw-r--r-- | src/statusbarspaceinfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<quint64>(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); } |
