Check the group-type of an item to decide whether the item
should be inserted as device or not.
BUG: 300671
FIXED-IN: 4.9.0
QList<PlacesItem*> devicesItems;
while (!bookmark.isNull()) {
QList<PlacesItem*> devicesItems;
while (!bookmark.isNull()) {
- const bool deviceAvailable = devices.remove(bookmark.metaDataItem("UDI"));
if (acceptBookmark(bookmark)) {
PlacesItem* item = new PlacesItem(bookmark);
if (acceptBookmark(bookmark)) {
PlacesItem* item = new PlacesItem(bookmark);
+ if (item->groupType() == PlacesItem::DevicesType) {
+ devices.remove(item->udi());
devicesItems.append(item);
} else {
const KUrl url = bookmark.url();
devicesItems.append(item);
} else {
const KUrl url = bookmark.url();