SVN: PLDLiveInstaller/trunk/DiskListWidget.cpp
shadzik
shadzik at pld-linux.org
Thu Jan 13 14:31:48 CET 2011
Author: shadzik
Date: Thu Jan 13 14:31:47 2011
New Revision: 12034
Modified:
PLDLiveInstaller/trunk/DiskListWidget.cpp
Log:
- we consider USB disks when they are connected to the usb bus, and not only if they are removable
- harddisk->bus()==Solid::StorageDrive::Usb
Modified: PLDLiveInstaller/trunk/DiskListWidget.cpp
==============================================================================
--- PLDLiveInstaller/trunk/DiskListWidget.cpp (original)
+++ PLDLiveInstaller/trunk/DiskListWidget.cpp Thu Jan 13 14:31:47 2011
@@ -49,7 +49,7 @@
{
QString text = device.product() + " (" + dev + ")";
QListWidgetItem *listitem = new QListWidgetItem;
- if ((harddisk->driveType()==Solid::StorageDrive::MemoryStick) || harddisk->isRemovable())
+ if ((harddisk->driveType()==Solid::StorageDrive::MemoryStick) || harddisk->bus()==Solid::StorageDrive::Usb)
listitem->setIcon(KIcon("drive-removable-media-usb").pixmap(64));
else
listitem->setIcon(KIcon("drive-harddisk").pixmap(64));
@@ -70,7 +70,7 @@
}
}
- }
+ }
}
}
foreach(QString soldev, solidDevice) {
More information about the pld-cvs-commit
mailing list