From: Vadim Zeitlin Date: Sat, 22 Mar 2008 15:37:04 +0000 (+0000) Subject: no real changes, just added a default value for the command used by exec with redirec... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69328170cc55c9b36ae0aac40b24ba51ed4f871e 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 --- diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index 64d1aae2b5..add59464c9 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -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);