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
This commit is contained in:
Mike Fleetwood 2018-09-10 20:03:58 +01:00 committed by Curtis Gedak
parent ba79ddaf72
commit 7a6dfb8a62
1 changed files with 10 additions and 3 deletions

View File

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