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) {
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to