[aseprite] 76/196: Don't use UI to warn about sequences when --batch and --save-as are used

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit fdde32b808ee2a45d98ebd28623c4e6caa278c15
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Mar 17 10:31:33 2016 -0300

    Don't use UI to warn about sequences when --batch and --save-as are used
    
    Fix #1018 introduced in 978145ba7a5ad0b1f2909a6cfa0d1406126985cf
---
 src/app/file/file.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/app/file/file.cpp b/src/app/file/file.cpp
index b1d7421..acfca1d 100644
--- a/src/app/file/file.cpp
+++ b/src/app/file/file.cpp
@@ -1,5 +1,5 @@
 // Aseprite
-// Copyright (C) 2001-2015  David Capello
+// Copyright (C) 2001-2016  David Capello
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License version 2 as
@@ -445,7 +445,8 @@ FileOp* FileOp::createSaveDocumentOperation(const Context* context,
         fop->m_seq.filename_list.push_back(frame_fn);
       }
 
-      if (fop->m_seq.filename_list.size() > 1 &&
+      if (context && context->isUIAvailable() &&
+          fop->m_seq.filename_list.size() > 1 &&
           ui::Alert::show("Notice"
                           "<<Do you want to export the animation in %d files?"
                           "<<%s, %s..."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list