diff --git a/src/mmg/jobs.cpp b/src/mmg/jobs.cpp index 4c3c11c9f..148580840 100644 --- a/src/mmg/jobs.cpp +++ b/src/mmg/jobs.cpp @@ -736,14 +736,20 @@ job_dialog::on_item_selected(wxListEvent &evt) { void job_dialog::start_jobs(vector &jobs_to_start) { wxString temp_settings; - job_run_dialog *dlg; int i; temp_settings.Printf(wxT("%s/jobs/temp.mmg"), wxGetCwd().c_str()); mdlg->save(temp_settings, true); - dlg = new job_run_dialog(this, jobs_to_start); - delete dlg; +#ifdef SYS_WINDOWS + mdlg->Show(false); + Show(false); +#endif + delete new job_run_dialog(this, jobs_to_start); +#ifdef SYS_WINDOWS + mdlg->Show(true); + Show(true); +#endif mdlg->load(temp_settings, true); wxRemoveFile(temp_settings); diff --git a/src/mmg/mmg.cpp b/src/mmg/mmg.cpp index f05b5caf8..82f7940e1 100644 --- a/src/mmg/mmg.cpp +++ b/src/mmg/mmg.cpp @@ -942,8 +942,6 @@ mmg_dialog::set_last_chapters_in_menu(wxString name) { void mmg_dialog::on_run(wxCommandEvent &evt) { - mux_dialog *mux_dlg; - update_command_line(); if (tc_output->GetValue().Length() == 0) { @@ -966,8 +964,13 @@ mmg_dialog::on_run(wxCommandEvent &evt) { return; set_on_top(false); - mux_dlg = new mux_dialog(this); - delete mux_dlg; +#ifdef SYS_WINDOWS + Show(false); +#endif + delete new mux_dialog(this); +#ifdef SYS_WINDOWS + Show(true); +#endif restore_on_top(); }