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:
parent
ea269cc929
commit
d5a20697c8
|
@ -157,7 +157,7 @@ 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 &&
|
||||
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() )
|
||||
|
|
Loading…
Reference in New Issue