From 69328170cc55c9b36ae0aac40b24ba51ed4f871e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 22 Mar 2008 15:37:04 +0000 Subject: [PATCH] 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 --- samples/exec/exec.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.50.0