no real changes, just added a default value for the command used by exec with redirect to avoid having to type it every time

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-22 15:37:04 +00:00
parent 5f5d1e4882
commit 69328170cc

View File

@@ -727,6 +727,15 @@ void MyFrame::OnShell(wxCommandEvent& WXUNUSED(event))
void MyFrame::OnExecWithRedirect(wxCommandEvent& WXUNUSED(event))
{
if ( !m_cmdLast )
{
#ifdef __WXMSW__
m_cmdLast = "type Makefile.in";
#else
m_cmdLast = "cat -n Makefile";
#endif
}
wxString cmd = wxGetTextFromUser(_T("Enter the command: "),
DIALOG_TITLE,
m_cmdLast);