]> git.saurik.com Git - wxWidgets.git/commitdiff
no real changes, just added a default value for the command used by exec with redirec...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 15:37:04 +0000 (15:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 15:37:04 +0000 (15:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/exec/exec.cpp

index 64d1aae2b546b41cbfdb9037e82fb26813b14e3c..add59464c91791b1a5380f6c941b18f57b1e1ff5 100644 (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);