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:
@@ -727,6 +727,15 @@ void MyFrame::OnShell(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
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: "),
|
wxString cmd = wxGetTextFromUser(_T("Enter the command: "),
|
||||||
DIALOG_TITLE,
|
DIALOG_TITLE,
|
||||||
m_cmdLast);
|
m_cmdLast);
|
||||||
|
Reference in New Issue
Block a user