diff --git a/src/mmg/tab_input.cpp b/src/mmg/tab_input.cpp index 41b57a7a4..e996f0482 100644 --- a/src/mmg/tab_input.cpp +++ b/src/mmg/tab_input.cpp @@ -1414,6 +1414,8 @@ tab_input::load(wxConfigBase *cfg) { int num_files, num_tracks; bool b; + dont_copy_values_now = true; + clb_tracks->Clear(); lb_input_files->Clear(); no_track_mode(); @@ -1450,8 +1452,10 @@ tab_input::load(wxConfigBase *cfg) { tracks.clear(); cfg->SetPath(wxT("/input")); - if (!cfg->Read(wxT("number_of_files"), &num_files) || (num_files < 0)) + if (!cfg->Read(wxT("number_of_files"), &num_files) || (num_files < 0)) { + dont_copy_values_now = false; return; + } fix_format("%u:%lld", format); for (fidx = 0; fidx < num_files; fidx++) { @@ -1608,6 +1612,8 @@ tab_input::load(wxConfigBase *cfg) { } st_tracks->Enable(tracks.size() > 0); clb_tracks->Enable(tracks.size() > 0); + + dont_copy_values_now = false; } bool