don't SetSavedToDisk, etc. if the save failed
This commit is contained in:
@@ -2551,14 +2551,17 @@ void ScreenEdit::HandleMainMenuChoice( MainMenuChoice c, const vector<int> &iAns
|
||||
{
|
||||
ASSERT( pSteps->IsAnEdit() );
|
||||
|
||||
pSteps->SetSavedToDisk( true );
|
||||
pSteps->SetLoadedFromProfile( ProfileSlot_Machine );
|
||||
|
||||
// XXX show error
|
||||
NotesWriterSM w;
|
||||
if( !w.WriteEditFileToMachine(pSong, pSteps) )
|
||||
break;
|
||||
|
||||
pSteps->SetSavedToDisk( true );
|
||||
CopyToLastSave();
|
||||
ClearUndo();
|
||||
|
||||
NotesWriterSM w;
|
||||
w.WriteEditFileToMachine( pSong, pSteps );
|
||||
|
||||
SCREENMAN->ZeroNextUpdate();
|
||||
|
||||
// TODO: make localizable
|
||||
|
||||
Reference in New Issue
Block a user