Synfig: Ask for confirmation before overwriting exported target

Created on 16 Apr 2020  路  4Comments  路  Source: synfig/synfig

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.

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

All 4 comments

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:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morevnaproject picture morevnaproject  路  5Comments

wstaelens picture wstaelens  路  5Comments

doradoro picture doradoro  路  3Comments

morevnaproject picture morevnaproject  路  5Comments

Keyikedalube picture Keyikedalube  路  4Comments