[gparted] Recognise lvm command immediately when rescanning for supported actions



commit 99abbb06ff43329069e341de3dff35135b1072c3
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sun Aug 26 17:17:06 2012 +0100

    Recognise lvm command immediately when rescanning for supported actions
    
    Rescanning for supported actions in the File System Support dialog was
    not detecting the removal and restoration of the lvm command.  GParted
    was only updating supported actions after refreshing all devices.
    
    Checking for the lvm command was tied to the refresh of the LVM2_PV_Info
    cache, hence the behaviour.  Fix by always checking for the lvm command
    when requested.
    
    Also remove extra new line from end of an error message in
    load_lvm2_pv_info_cache().

 src/LVM2_PV_Info.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/LVM2_PV_Info.cc b/src/LVM2_PV_Info.cc
index c64fe2e..d046035 100644
--- a/src/LVM2_PV_Info.cc
+++ b/src/LVM2_PV_Info.cc
@@ -105,8 +105,7 @@ LVM2_PV_Info::~LVM2_PV_Info()
 
 bool LVM2_PV_Info::is_lvm2_pv_supported()
 {
-	if ( ! lvm2_pv_info_cache_initialized )
-		set_command_found() ;
+	set_command_found() ;
 	return ( lvm_found ) ;
 }
 
@@ -283,7 +282,6 @@ void LVM2_PV_Info::load_lvm2_pv_info_cache()
 			temp += _("Some or all of the details might be missing or incorrect.") ;
 			temp += "\n" ;
 			temp += _("You should NOT modify any LVM2 PV partitions.") ;
-			temp += "\n" ;
 			error_messages .push_back( temp ) ;
 		}
 	}



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