diff --git a/antispamwizard.cpp b/antispamwizard.cpp index 4f348494f..5f23afc54 100644 --- a/antispamwizard.cpp +++ b/antispamwizard.cpp @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include @@ -629,11 +629,9 @@ void AntiSpamWizard::slotBuildSummary() int AntiSpamWizard::checkForProgram( const QString &executable ) { kDebug(5006) << "Testing for executable:" << executable << endl; - K3Process process; - process << executable; - process.setUseShell( true ); - process.start( K3Process::Block ); - return process.exitStatus(); + KProcess process; + process.setShellCommand( executable ); + return process.execute (); }