Skip to content

Commit

Permalink
Merge synfig#832: Entry filename extension now corresponds to the sel…
Browse files Browse the repository at this point in the history
…ected target after saving file. Closes synfig#830.

Thanks to Ankit Kumar Dwivedi.
  • Loading branch information
morevnaproject committed May 25, 2019
1 parent 463de80 commit 5fb4499
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions synfig-studio/src/gui/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,13 @@ RenderSettings::set_entry_filename()
else
filename+=" ("+canvas->get_name()+')';
}

filename += ".avi";


try
{
entry_filename.set_text((filename));
if(!comboboxtext_target.get_active_row_number())
entry_filename.set_text((filename +".avi"));
// in case the file was saved and loaded again then .ext should be according to target
else on_comboboxtext_target_changed();
}
catch(...)
{
Expand Down

0 comments on commit 5fb4499

Please sign in to comment.