-Added print if any Statly returns Stately::error()
parent
3ecf2f441f
commit
5bf93ac39a
|
@ -2,6 +2,7 @@
|
|||
#include "stately.hxx"
|
||||
|
||||
#include "../jack.hxx"
|
||||
#include "../eventhandler.hxx"
|
||||
#include "state.hxx"
|
||||
|
||||
extern Jack* jack;
|
||||
|
@ -29,6 +30,15 @@ void Stately::checkCompletedSave()
|
|||
{
|
||||
jack->getState()->finish();
|
||||
|
||||
if ( saveErrors )
|
||||
{
|
||||
// send message to UI to be printed, noting # of clips unsaved due to errors
|
||||
char buf[50];
|
||||
sprintf( buf, "Saved with %i clips !saved due to errors", saveErrors);
|
||||
EventGuiPrint e( buf );
|
||||
writeToGuiRingbuffer( &e );
|
||||
}
|
||||
|
||||
// reset in case of another save before quit
|
||||
saveErrors = 0;
|
||||
saveSuccess = 0;
|
||||
|
|
Loading…
Reference in New Issue