[partition] When flags are explicitly invalid, return early
This commit is contained in:
parent
356e13ae93
commit
87c77d9807
@ -52,6 +52,10 @@ PartitionTable::Flags
|
||||
flags( const Partition* partition )
|
||||
{
|
||||
auto v = partition->property( FLAGS_PROPERTY );
|
||||
if ( !v.isValid() )
|
||||
{
|
||||
return partition->activeFlags();
|
||||
}
|
||||
if ( v.type() == QVariant::Int )
|
||||
{
|
||||
return static_cast< PartitionTable::Flags >( v.toInt() );
|
||||
|
Loading…
Reference in New Issue
Block a user