From: Peter Penz Date: Mon, 19 Nov 2007 20:24:33 +0000 (+0000) Subject: fixed issue that the space info is not updated sometimes (QProgressBar::setValue... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/812994644982747d88fc34d6bfc53384bea36144 fixed issue that the space info is not updated sometimes (QProgressBar::setValue() uses QProgressBar::text() which returns m_text -> the text must be set first) svn path=/trunk/KDE/kdebase/apps/; revision=738826 --- diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index fcf51cd65..1d1ca0240 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -72,9 +72,9 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint, const bool valuesChanged = (kBUsed != static_cast(value())) || (kBAvailable != static_cast(maximum())); if (valuesChanged) { + m_text = i18nc("@info:status", "%1 free", KIO::convertSizeFromKiB(kBAvailable)); setMaximum(kBAvailable); setValue(kBUsed); - m_text = i18nc("@info:status", "%1 free", KIO::convertSizeFromKiB(kBAvailable)); } }