mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
mmg will again set the output file name for the 'first input file' method if the 'remove all' button is used.
This commit is contained in:
parent
272706ce9d
commit
d02e58868a
@ -943,8 +943,6 @@ mmg_dialog::on_file_new(wxCommandEvent &evt) {
|
||||
wxRemoveFile(tmp_name);
|
||||
|
||||
set_status_bar(wxT("Configuration cleared."));
|
||||
|
||||
first_input_directory.Clear();
|
||||
}
|
||||
|
||||
void
|
||||
@ -1842,15 +1840,10 @@ mmg_dialog::set_output_maybe(const wxString &new_output) {
|
||||
output = previous_output_directory;
|
||||
else if (ODM_FIXED == options.output_directory_mode)
|
||||
output = options.output_directory;
|
||||
else
|
||||
output = first_input_directory;
|
||||
|
||||
if (output.IsEmpty())
|
||||
output = filename.GetPath();
|
||||
|
||||
if (first_input_directory.IsEmpty())
|
||||
first_input_directory = filename.GetPath();
|
||||
|
||||
output += wxFileName::GetPathSeparator() + filename.GetName()
|
||||
+ (has_video ? wxU(".mkv") : has_audio ? wxU(".mka") : wxU(".mks"));
|
||||
|
||||
|
@ -82,7 +82,7 @@ class mmg_dialog: public wxFrame {
|
||||
public:
|
||||
wxButton *b_browse_output;
|
||||
wxTextCtrl *tc_output;
|
||||
wxString previous_output_directory, first_input_directory;
|
||||
wxString previous_output_directory;
|
||||
|
||||
wxString cmdline, cli_options;
|
||||
wxArrayString clargs;
|
||||
|
Loading…
Reference in New Issue
Block a user