Allow partition naming on busy partitions (#746214)
Allow partition names to be changed whether or not the partition is busy, rather than only when not busy, because it doesn't effect the busy file system or change the partition boundaries in any way. Bug 746214 - Partition naming enhancements
This commit is contained in:
parent
e9cc0b15a5
commit
f804bc3244
|
@ -1018,6 +1018,12 @@ void Win_GParted::set_valid_operations()
|
|||
)
|
||||
allow_toggle_busy_state( true ) ;
|
||||
|
||||
// Allow naming on devices that support it
|
||||
if ( selected_partition.type != TYPE_UNALLOCATED &&
|
||||
selected_partition.status == STAT_REAL &&
|
||||
devices[current_device].partition_naming )
|
||||
allow_name_partition( true );
|
||||
|
||||
// Manage flags
|
||||
if ( selected_partition.type != TYPE_UNALLOCATED &&
|
||||
selected_partition.status == STAT_REAL &&
|
||||
|
@ -1130,10 +1136,6 @@ void Win_GParted::set_valid_operations()
|
|||
if ( selected_partition .status == GParted::STAT_REAL && fs .write_label )
|
||||
allow_label_filesystem( true );
|
||||
|
||||
// only allow naming of real partitions on devices that support naming
|
||||
if ( selected_partition.status == STAT_REAL && devices[current_device].partition_naming )
|
||||
allow_name_partition( true );
|
||||
|
||||
//only allow changing UUID of real partitions that support it
|
||||
if ( selected_partition .status == GParted::STAT_REAL && fs .write_uuid )
|
||||
allow_change_uuid( true ) ;
|
||||
|
|
Loading…
Reference in New Issue