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() );
|
ASSERT( pSteps->IsAnEdit() );
|
||||||
|
|
||||||
pSteps->SetSavedToDisk( true );
|
|
||||||
pSteps->SetLoadedFromProfile( ProfileSlot_Machine );
|
pSteps->SetLoadedFromProfile( ProfileSlot_Machine );
|
||||||
|
|
||||||
|
// XXX show error
|
||||||
|
NotesWriterSM w;
|
||||||
|
if( !w.WriteEditFileToMachine(pSong, pSteps) )
|
||||||
|
break;
|
||||||
|
|
||||||
|
pSteps->SetSavedToDisk( true );
|
||||||
CopyToLastSave();
|
CopyToLastSave();
|
||||||
ClearUndo();
|
ClearUndo();
|
||||||
|
|
||||||
NotesWriterSM w;
|
|
||||||
w.WriteEditFileToMachine( pSong, pSteps );
|
|
||||||
|
|
||||||
SCREENMAN->ZeroNextUpdate();
|
SCREENMAN->ZeroNextUpdate();
|
||||||
|
|
||||||
// TODO: make localizable
|
// TODO: make localizable
|
||||||
|
|||||||
Reference in New Issue
Block a user