Don't show errors if we cancel the sprite loading process

This commit is contained in:
David Capello 2016-11-22 14:01:17 -03:00
parent db4e32d8dd
commit c06ed1b993

View File

@ -157,7 +157,7 @@ void OpenFileCommand::onExecute(Context* context)
fop->postLoad();
// Show any error
if (fop->hasError())
if (fop->hasError() && !fop->isStop())
console.printf(fop->error().c_str());
Document* document = fop->document();