X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8fc4bc196ac55f30e22113ab44b404e641679301..817f3952e2bed820ea3b50dfdfe91ccb99dcb748:/src/statusbarspaceinfo.cpp 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(); }