thanks for the fast update !
but may i propose to close it only if no build error occured ?
something like:
if (m_BatchNotify)
{
wxString msg;
if (m_BatchExitCode == 0)
msg << _("Batch build ended.\n");
else
msg << _("Batch build stopped with errors.\n");
msg << wxString::Format(_("Process exited with status code %d."), m_BatchExitCode);
cbMessageBox(msg, g_AppName, m_BatchExitCode == 0 ? wxICON_INFORMATION : wxICON_WARNING);
}
else
wxBell();
if (m_pBatchBuildDialog && m_BatchWindowAutoClose && (m_BatchExitCode == 0)) // <------ change is HERE
m_pBatchBuildDialog->EndModal(wxID_OK);
}
btw. would it somehow be possible to pass the m_BatchExitCode value back to the caller envinronment ?