[gparted] Allow partition naming on busy partitions (#746214)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Allow partition naming on busy partitions (#746214)
- Date: Wed, 25 Mar 2015 19:08:09 +0000 (UTC)
commit f804bc3244c1ee4509fe02b66990709566b69d08
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Fri Mar 13 17:38:48 2015 +0000
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 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 609bfcf..b8dbfbf 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 ) ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]