[gparted] Enable copy and move for basic supported file systems (!13)



commit 7a6dfb8a62a3603b2dd32fce7ceec4e77e1bde62
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Mon Sep 10 20:03:58 2018 +0100

    Enable copy and move for basic supported file systems (!13)
    
    Add copy and move supported action set for each basic supported file
    system.
    
    Closes !13 - Support copying and moving of unsupported partition content

 src/GParted_Core.cc | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 53c9c0e3..bf5382ae 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -122,10 +122,17 @@ void GParted_Core::find_supported_filesystems()
 
        for ( f = FILESYSTEM_MAP .begin() ; f != FILESYSTEM_MAP .end() ; f++ ) {
                if ( f ->second )
+               {
                        FILESYSTEMS .push_back( f ->second ->get_filesystem_support() ) ;
-               else {
-                       FS fs_notsupp( f->first );
-                       FILESYSTEMS .push_back( fs_notsupp ) ;
+               }
+               else
+               {
+                       // For basic supported file systems create the supported action
+                       // set.
+                       FS fs_basicsupp( f->first );
+                       fs_basicsupp.move = FS::GPARTED;
+                       fs_basicsupp.copy = FS::GPARTED;
+                       FILESYSTEMS.push_back( fs_basicsupp );
                }
        }
 }


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