Synfig version & platform:
Master: ccf39ec
Issue description:
When exporting an animation to any arbitrary target, Synfig Studio never informs the user if the action is going to overwrite an existing file.
I suggest to add one check (for example with a popup dialog), before proceeding with the rendering of the target.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
If overwriting an existing animation .sif project a confirmation dialog will popup.
It could be a great place to start with and to get an idea of how it works.
Source code:
https://github.com/synfig/synfig/blob/c51cef4a4381edc249884c2ff4fd2efdb94b69c4/synfig-studio/src/gui/instance.cpp#L527-L562
Looked a bit at the code and the solution should be very close to the one already reported in the previous comment... Working on it to test if it works correctly.
Things get a bit tricky in case of sequences.
It's needed to take into account the sequence separator string and the time numbering.
I've made some tests and ended up with something that appears to work consistently.
I'll report here a merge request as soon as the solution is tested and cleaned (if it's ever going to work :wink:)
Most helpful comment
If overwriting an existing animation .sif project a confirmation dialog will popup.
It could be a great place to start with and to get an idea of how it works.
Source code:
https://github.com/synfig/synfig/blob/c51cef4a4381edc249884c2ff4fd2efdb94b69c4/synfig-studio/src/gui/instance.cpp#L527-L562