┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/statusbarspaceinfo.cpp12
-rw-r--r--src/statusbarspaceinfo.h2
2 files changed, 8 insertions, 6 deletions
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<quint64>(value())) ||
(kBAvailable != static_cast<quint64>(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());
diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h
index 99a0c78b5..eaecae8b4 100644
--- a/src/statusbarspaceinfo.h
+++ b/src/statusbarspaceinfo.h
@@ -53,7 +53,7 @@ private slots:
quint64 kBUsed,
quint64 kBAvailable);
- void slotKDFSDone();
+ void slotDiskFreeSpaceDone();
/** Refreshes the space information for the current set URL. */
void refresh();