From 978145ba7a5ad0b1f2909a6cfa0d1406126985cf Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 22 Dec 2015 18:00:01 -0300 Subject: [PATCH] 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 5a025472a..68131a4e4 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" + "<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