From 5b0ddd437ea35090b9d8c15d2cc683822bcea61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 13 Jan 2010 15:44:34 +0000 Subject: [PATCH] Display the partition type from the partition table entry if the content type is unknown, except if the partition has children. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35051 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/drivesetup/PartitionList.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/drivesetup/PartitionList.cpp b/src/apps/drivesetup/PartitionList.cpp index bb783c6551..0ec15cf85c 100644 --- a/src/apps/drivesetup/PartitionList.cpp +++ b/src/apps/drivesetup/PartitionList.cpp @@ -203,9 +203,12 @@ PartitionListRow::PartitionListRow(BPartition* partition) 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) {