]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/exec/exec.cpp
Rebake all the samples and others makefiles too.
[wxWidgets.git] / samples / exec / exec.cpp
index d72c89a7adb37a9c9c81de81ae4685e16fd44da9..ada37bb7ac233b319a4981ff779be79c38bccea3 100644 (file)
@@ -962,11 +962,8 @@ void MyFrame::OnExecWithRedirect(wxCommandEvent& WXUNUSED(event))
         wxLogStatus("Command \"%s\" terminated after %ldms; exit code %d.",
                     cmd, sw.Time(), code);
 
-        if ( code != -1 )
-        {
-            ShowOutput(cmd, output, wxT("Output"));
-            ShowOutput(cmd, errors, wxT("Errors"));
-        }
+        ShowOutput(cmd, output, wxT("Output"));
+        ShowOutput(cmd, errors, wxT("Errors"));
     }
     else // async exec
     {