[aseprite] 150/308: Add warning before we save a sequence of bitmaps (fix #902)
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:04 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 978145ba7a5ad0b1f2909a6cfa0d1406126985cf
Author: David Capello <davidcapello at gmail.com>
Date: Tue Dec 22 18:00:01 2015 -0300
Add warning before we save a sequence of bitmaps (fix #902)
---
src/app/file/file.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/app/file/file.cpp b/src/app/file/file.cpp
index 5a02547..68131a4 100644
--- a/src/app/file/file.cpp
+++ b/src/app/file/file.cpp
@@ -444,6 +444,17 @@ FileOp* FileOp::createSaveDocumentOperation(const Context* context,
fop->m_seq.filename_list.push_back(frame_fn);
}
+
+ if (fop->m_seq.filename_list.size() > 1 &&
+ ui::Alert::show("Notice"
+ "<<Do you want to export the animation in %d files?"
+ "<<%s, %s..."
+ "||&Agree||&Cancel",
+ int(fop->m_seq.filename_list.size()),
+ base::get_file_name(fop->m_seq.filename_list[0]).c_str(),
+ base::get_file_name(fop->m_seq.filename_list[1]).c_str()) != 1) {
+ return nullptr;
+ }
}
}
else
--
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