[gparted] Preserve partition name in preview of format operation (#746214)



commit eae2dbaa8290b34b1f7aab1bfd1f1adaea269bc6
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Fri Mar 13 22:52:05 2015 +0000

    Preserve partition name in preview of format operation (#746214)
    
    Preview of the format operation cleared the partition name, yet when
    applied, the partition name reappeared.  Fix the preview to reflect
    reality.
    
    Bug 746214 - Partition naming enhancements

 src/Win_GParted.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index aff560d..da1a5c5 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -2034,6 +2034,7 @@ void Win_GParted::activate_format( GParted::FILESYSTEM new_fs )
                       devices[current_device].sector_size,
                       selected_partition.inside_extended,
                       false );
+       part_temp.name = selected_partition.name;
        //Leave sector usage figures to new Partition object defaults of
        //  -1, -1, 0 (_used, _unused, _unallocated) representing unknown.
         


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]