[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/devicenotifier
From: Jacopo De Simoi <wilderkde () gmail ! com>
Date: 2010-06-20 17:59:18
Message-ID: 20100620175918.EEB8CAC8D9 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1140446 by jacopods:
backport fix for bogus free space value in some cases
CCBUG:223925
M +5 -0 deviceitem.cpp
M +5 -0 deviceitem.h
M +1 -1 notifierdialog.cpp
--- branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/devicenotifier/deviceitem.cpp \
#1140445:1140446 @@ -415,6 +415,11 @@
}
}
+DeviceItem::State DeviceItem::state() const
+{
+ return m_state;
+}
+
void DeviceItem::triggerBusyWidget()
{
m_mainLayout->removeItem(m_leftActionIcon);
--- branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/devicenotifier/deviceitem.h \
#1140445:1140446 @@ -183,6 +183,11 @@
void setBusy();
/**
+ * Gets the state of the device
+ **/
+ State state() const;
+
+ /**
* Update colors on a theme change
**/
void updateColors();
--- branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/devicenotifier/notifierdialog.cpp \
#1140445:1140446 @@ -727,7 +727,7 @@
void NotifierDialog::updateFreeSpace(DeviceItem *item)
{
- if (item->isMounted()) {
+ if (item->isMounted() && (item->state() == DeviceItem::Idle)) {
Solid::Device device(item->udi());
Solid::StorageAccess *access = device.as<Solid::StorageAccess>();
if (access) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic