simplify
This commit is contained in:
@@ -442,9 +442,8 @@ void ProfileManager::LoadMachineProfile()
|
|||||||
Profile::LoadResult lr = m_pMachineProfile->LoadAllFromDir(MACHINE_PROFILE_DIR, false);
|
Profile::LoadResult lr = m_pMachineProfile->LoadAllFromDir(MACHINE_PROFILE_DIR, false);
|
||||||
if( lr == Profile::failed_no_profile )
|
if( lr == Profile::failed_no_profile )
|
||||||
{
|
{
|
||||||
Profile *pProfile = Profile::CreateNewProfile( MACHINE_PROFILE_DIR, "Machine", false );
|
m_pMachineProfile->InitAll();
|
||||||
delete m_pMachineProfile;
|
m_pMachineProfile->SaveAllToDir( MACHINE_PROFILE_DIR, PREFSMAN->m_bSignProfileData );
|
||||||
m_pMachineProfile = pProfile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the machine name has changed, make sure we use the new name
|
// If the machine name has changed, make sure we use the new name
|
||||||
|
|||||||
Reference in New Issue
Block a user