finish edit renaming and handle display errors encountered during rename

This commit is contained in:
Chris Danford
2006-03-08 22:05:23 +00:00
parent e02690299a
commit 7ec7a906c3
6 changed files with 70 additions and 17 deletions
+5 -2
View File
@@ -2677,10 +2677,13 @@ void ScreenEdit::HandleMainMenuChoice( MainMenuChoice c, const vector<int> &iAns
{
ASSERT( pSteps->IsAnEdit() );
// XXX show error
NotesWriterSM w;
if( !w.WriteEditFileToMachine(pSong, pSteps) )
RString sError;
if( !w.WriteEditFileToMachine(pSong,pSteps,sError) )
{
ScreenPrompt::Prompt( SM_None, sError );
break;
}
// HACK: clear undo, so "exit" below knows we don't need to save.
// This only works because important non-steps data can't be changed in