[haiku-commits] r35051 - haiku/trunk/src/apps/drivesetup

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 13 Jan 2010 16:44:34 +0100 (CET)

Author: stippi
Date: 2010-01-13 16:44:34 +0100 (Wed, 13 Jan 2010)
New Revision: 35051
Changeset: http://dev.haiku-os.org/changeset/35051/haiku

Modified:
   haiku/trunk/src/apps/drivesetup/PartitionList.cpp
Log:
Display the partition type from the partition table entry if the
content type is unknown, except if the partition has children.


Modified: haiku/trunk/src/apps/drivesetup/PartitionList.cpp
===================================================================
--- haiku/trunk/src/apps/drivesetup/PartitionList.cpp   2010-01-13 15:02:55 UTC 
(rev 35050)
+++ haiku/trunk/src/apps/drivesetup/PartitionList.cpp   2010-01-13 15:44:34 UTC 
(rev 35051)
@@ -203,9 +203,12 @@
        if (partition->ContainsFileSystem()) {
                SetField(new BStringField(partition->ContentType()), 
kFilesystemColumn);
                SetField(new BStringField(partition->ContentName()), 
kVolumeNameColumn);
-       } else {
+       } else if (partition->CountChildren() > 0) {
                SetField(new BStringField(kUnavailableString), 
kFilesystemColumn);
                SetField(new BStringField(kUnavailableString), 
kVolumeNameColumn);
+       } else {
+               SetField(new BStringField(partition->Type()), 
kFilesystemColumn);
+               SetField(new BStringField(kUnavailableString), 
kVolumeNameColumn);
        }
 
        if (partition->IsMounted() && partition->GetMountPoint(&path) == B_OK) {


Other related posts:

  • » [haiku-commits] r35051 - haiku/trunk/src/apps/drivesetup - superstippi