From 99abbb06ff43329069e341de3dff35135b1072c3 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sun, 26 Aug 2012 17:17:06 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/LVM2_PV_Info.cc b/src/LVM2_PV_Info.cc index c64fe2ea..d046035c 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 ) ; } }