don't reset Guid when clearing machine stats
This commit is contained in:
@@ -8,7 +8,15 @@
|
|||||||
|
|
||||||
ScreenClearMachineStats::ScreenClearMachineStats( CString sName ): Screen( sName )
|
ScreenClearMachineStats::ScreenClearMachineStats( CString sName ): Screen( sName )
|
||||||
{
|
{
|
||||||
PROFILEMAN->GetMachineProfile()->InitAll();
|
Profile* pProfile = PROFILEMAN->GetMachineProfile();
|
||||||
|
|
||||||
|
// don't reset the Guid
|
||||||
|
CString sGuid = pProfile->m_sGuid;
|
||||||
|
|
||||||
|
pProfile->InitAll();
|
||||||
|
|
||||||
|
pProfile->m_sGuid = sGuid;
|
||||||
|
|
||||||
PROFILEMAN->SaveMachineProfile();
|
PROFILEMAN->SaveMachineProfile();
|
||||||
|
|
||||||
SCREENMAN->SystemMessage( "Machine stats cleared." );
|
SCREENMAN->SystemMessage( "Machine stats cleared." );
|
||||||
|
|||||||
Reference in New Issue
Block a user