[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 21:37:18
Message-ID: 20100620213718.4D004AC8DE () svn ! kde ! org
[Download RAW message or body]
SVN commit 1140502 by jacopods:
backport r1140495
CCBUG:228706
M +5 -1 devicenotifier.cpp
--- branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/devicenotifier/devicenotifier.cpp \
#1140501:1140502 @@ -132,7 +132,11 @@
QList<Solid::Device> list = \
Solid::Device::listFromType(Solid::DeviceInterface::StorageVolume); foreach (const \
Solid::Device &device, list) {
- if (device.as<Solid::StorageVolume>()->isIgnored()) {
+ // We manually add non-removable devices that are a priori ignored
+ // discard swap and partition tables
+ Solid::Device parentDevice = device.parent();
+ Solid::StorageDrive *drive = parentDevice.as<Solid::StorageDrive>();
+ if (drive && (!drive->isHotpluggable() && !drive->isRemovable())) {
deviceAdded(device, false);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic