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 ) ;