X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/daf788e858774b4d5e11ac199fecfa0e6896e1bb..d4287eb8e36ead543eb595bfcaa217fa0edd2654:/src/statusbarspaceinfo.cpp diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index 8ee98a3d0..555cfb891 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -74,18 +74,20 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint, const bool valuesChanged = (kBUsed != static_cast(value())) || (kBAvailable != static_cast(maximum())); if (valuesChanged) { - m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable*1024)); + m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable * 1024)); setMaximum(kBSize); setValue(kBUsed); } } -void StatusBarSpaceInfo::slotKDFSDone() +void StatusBarSpaceInfo::slotDiskFreeSpaceDone() { - if( m_foundMountPoint ) + if (m_foundMountPoint) { return; + } + m_gettingSize = false; - m_text = i18n("Free disk space could not be determined"); + m_text = i18nc("@info:status", "Unknown size"); setMinimum(0); setMaximum(0); setValue(0); @@ -116,7 +118,7 @@ void StatusBarSpaceInfo::refresh() quint64, quint64, quint64))); - connect(job, SIGNAL(done()), this, SLOT(slotKDFSDone())); + connect(job, SIGNAL(done()), this, SLOT(slotDiskFreeSpaceDone())); job->readDF(mp->mountPoint());