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().
This commit is contained in:
Mike Fleetwood 2012-08-26 17:17:06 +01:00 committed by Curtis Gedak
parent 60d7728177
commit 99abbb06ff
1 changed files with 1 additions and 3 deletions

View File

@ -105,7 +105,6 @@ LVM2_PV_Info::~LVM2_PV_Info()
bool LVM2_PV_Info::is_lvm2_pv_supported() bool LVM2_PV_Info::is_lvm2_pv_supported()
{ {
if ( ! lvm2_pv_info_cache_initialized )
set_command_found() ; set_command_found() ;
return ( lvm_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 += _("Some or all of the details might be missing or incorrect.") ;
temp += "\n" ; temp += "\n" ;
temp += _("You should NOT modify any LVM2 PV partitions.") ; temp += _("You should NOT modify any LVM2 PV partitions.") ;
temp += "\n" ;
error_messages .push_back( temp ) ; error_messages .push_back( temp ) ;
} }
} }