Display unrecognised whole disk devices as all grey again (#788308)

Following the switch from whole_device flag to TYPE_UNPARTITIONED,
unallocated space can be found in two partition types:
    TYPE_UNALLOCATED
    TYPE_UNPARTITIONED  (only when filesystem == FS_UNALLOCATED)

As the file system in both cases is FS_UNALLOCATED check for that when
determining whether a partition is unallocated or not.

Bug 788308 - Remove whole_device partition flag
This commit is contained in:
Mike Fleetwood 2016-08-20 16:20:20 +01:00 committed by Curtis Gedak
parent ea269cc929
commit d5a20697c8
1 changed files with 2 additions and 2 deletions

View File

@ -157,8 +157,8 @@ void DrawingAreaVisualDisk::calc_usage( std::vector<visual_partition> & visual_p
{
for ( unsigned int t = 0 ; t < visual_partitions .size() ; t++ )
{
if ( visual_partitions[t].partition_ptr->type != TYPE_UNALLOCATED &&
visual_partitions[t].partition_ptr->type != TYPE_EXTENDED )
if ( visual_partitions[t].partition_ptr->filesystem != FS_UNALLOCATED &&
visual_partitions[t].partition_ptr->type != TYPE_EXTENDED )
{
if ( visual_partitions[t].partition_ptr->sector_usage_known() )
{