]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/process.cpp
Fix for mousewheel events when it is set to page mode instead of lines.
[wxWidgets.git] / src / common / process.cpp
index d98c7178ef5ddd45ebf73151f6964e7e39fad240..7c23c4762076117016c77d6cfdeefef5097bdd95 100644 (file)
@@ -63,10 +63,11 @@ void wxProcess::Init(wxEvtHandler *parent, int id, int flags)
 }
 
 /* static */
-wxProcess *wxProcess::Open(const wxString& cmd)
+wxProcess *wxProcess::Open(const wxString& cmd, int flags)
 {
+    wxASSERT_MSG( !(flags & wxEXEC_SYNC), wxT("wxEXEC_SYNC should not be used." ));
     wxProcess *process = new wxProcess(wxPROCESS_REDIRECT);
-    if ( !wxExecute(cmd, wxEXEC_ASYNC, process) )
+    if ( !wxExecute(cmd, flags, process) )
     {
         // couldn't launch the process
         delete process;