[gparted/lucab/btrfs] Use ext2 as default when creating new filesystems



commit 20b84076e1c06e61c57b9b95bab18c8c0a3934d7
Author: Luca Bruno <lucab debian org>
Date:   Sun Oct 3 20:56:09 2010 +0200

    Use ext2 as default when creating new filesystems
    
    Default to ext2 for filesystem creation, instead of the alphabetically
    preceding btrfs.

 src/Dialog_Partition_New.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Dialog_Partition_New.cc b/src/Dialog_Partition_New.cc
index 962dde0..c3e3237 100644
--- a/src/Dialog_Partition_New.cc
+++ b/src/Dialog_Partition_New.cc
@@ -337,8 +337,10 @@ void Dialog_Partition_New::Build_Filesystems_Menu( bool only_unformatted )
 	menu_filesystem .items() .back() .set_sensitive( true ) ;
 	
 	//find and set first enabled file system
+	//use ext2 as default FS
 	for ( unsigned int t = 0 ; t < menu_filesystem .items() .size() ; t++ )
-		if ( menu_filesystem .items()[ t ] .sensitive() )
+		if ( menu_filesystem .items()[ t ] .sensitive() &&
+			 menu_filesystem .items()[ t ] .get_label() == "ext2")
 		{
 			first_creatable_fs = t ;
 			break ;



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