From c06ed1b9933fc4423e1ef485bcaff29987622f92 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 22 Nov 2016 14:01:17 -0300 Subject: [PATCH] Don't show errors if we cancel the sprite loading process --- src/app/commands/cmd_open_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/commands/cmd_open_file.cpp b/src/app/commands/cmd_open_file.cpp index 26776e8a6..018d01d33 100644 --- a/src/app/commands/cmd_open_file.cpp +++ b/src/app/commands/cmd_open_file.cpp @@ -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();