┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/statusbarspaceinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp
index 059a55094..79a1169e5 100644
--- a/src/statusbarspaceinfo.cpp
+++ b/src/statusbarspaceinfo.cpp
@@ -68,7 +68,7 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint,
setText(i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable * 1024)));
setUpdatesEnabled(false);
m_kBSize = kBSize;
- setValue((kBUsed * 100) / kBSize);
+ setValue(kBSize > 0 ? (kBUsed * 100) / kBSize : 0);
setUpdatesEnabled(true);
update();
}