Ticket #4235: DriveSetupPartitionType.diff

File DriveSetupPartitionType.diff, 880 bytes (added by Morgul, 8 years ago)
  • src/apps/drivesetup/PartitionList.cpp

    diff --git a/src/apps/drivesetup/PartitionList.cpp b/src/apps/drivesetup/PartitionList.cpp
    index 3610a5e..6e119da 100644
    a b PartitionListRow::PartitionListRow(BPartition* partition)  
    221221        SetField(new BStringField(kUnavailableString), kFilesystemColumn);
    222222        SetField(new BStringField(kUnavailableString), kVolumeNameColumn);
    223223    } else {
    224         if (partition->ContainsFileSystem())
    225             SetField(new BStringField(partition->Type()), kFilesystemColumn);
    226         else
    227             SetField(new BStringField(kUnavailableString), kFilesystemColumn);     
     224        BString partitionType(partition->Type());
     225        partitionType.Prepend("(");
     226        partitionType.Append(")");     
     227        SetField(new BStringField(partitionType), kFilesystemColumn);
    228228        SetField(new BStringField(kUnavailableString), kVolumeNameColumn);
    229229    }
    230230