on edit "revert from disk", if the reverted file has no steps of the current
type, exit to menu instead of crashing
This commit is contained in:
@@ -1436,7 +1436,10 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
/* If we still couldn't find any steps, then all steps of the current StepsType
|
/* If we still couldn't find any steps, then all steps of the current StepsType
|
||||||
* were removed. Don't create them; only do that in EditMenu. */
|
* were removed. Don't create them; only do that in EditMenu. */
|
||||||
if( pSteps == NULL )
|
if( pSteps == NULL )
|
||||||
FAIL_M("!!!"); // XXX
|
{
|
||||||
|
SCREENMAN->SetNewScreen( "ScreenEditMenu" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SCREENMAN->SystemMessage( sMessage );
|
SCREENMAN->SystemMessage( sMessage );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user