Sequencer: Allow saving while transport is running. Closes #40.
This commit is contained in:
parent
f137629b93
commit
815a16f96f
|
@ -53,18 +53,10 @@ int command_save ( char **out_msg );
|
|||
|
||||
int
|
||||
NSM_Client::command_save ( char **out_msg )
|
||||
{
|
||||
if ( transport.rolling )
|
||||
{
|
||||
*out_msg = strdup( "Cannot save while transport is running." );
|
||||
return ERR_NOT_NOW;
|
||||
}
|
||||
else
|
||||
{
|
||||
save_song( nsm->project_filename );
|
||||
return ERR_OK;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
NSM_Client::command_open ( const char *name, const char *display_name, const char *client_id, char **out_msg )
|
||||
|
|
Loading…
Reference in New Issue