git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52700
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void MyFrame::OnExecWithRedirect(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);
wxString cmd = wxGetTextFromUser(_T("Enter the command: "),
DIALOG_TITLE,
m_cmdLast);