From f804bc3244c1ee4509fe02b66990709566b69d08 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Fri, 13 Mar 2015 17:38:48 +0000 Subject: [PATCH] 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 --- src/Win_GParted.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 609bfcf3..b8dbfbf7 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -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 ) ;