Commit cc77bf25 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

K3Process--

svn path=/trunk/KDE/kdebase/apps/; revision=676771
parent 2ac0eb19
......@@ -43,7 +43,7 @@
#include <kaboutdata.h>
#include <kgenericfactory.h>
#include <kmessagebox.h>
#include <k3process.h>
#include <QProcess>
#include <kio/netaccess.h>
#include <kurl.h>
#include <k3urldrag.h>
......@@ -106,7 +106,6 @@ KCMUserAccount::KCMUserAccount( QWidget *parent, const QStringList &)
void KCMUserAccount::slotChangePassword()
{
K3Process *proc = new K3Process;
QString bin = KGlobal::dirs()->findExe("kdepasswd");
if ( bin.isNull() )
{
......@@ -116,14 +115,11 @@ void KCMUserAccount::slotChangePassword()
"not be able to change your password."));
_mw->btnChangePassword->setEnabled(false);
delete proc;
return;
}
*proc << bin << _ku->loginName() ;
proc->start(K3Process::DontCare);
delete proc;
QStringList lst;
lst << _ku->loginName();
QProcess::startDetached(bin,lst);
}
......
......@@ -51,11 +51,11 @@
#include <kprotocolmanager.h>
#include <klibloader.h>
#include <klocale.h>
#include <k3process.h>
#include <kstandarddirs.h>
#include <ktemporaryfile.h>
#include <kurl.h>
#include <QX11Info>
#include <QProcess>
#include <X11/Intrinsic.h>
#include <X11/Composite.h>
......@@ -507,8 +507,7 @@ void g_NPN_ReloadPlugins(NPBool reloadPages)
{
// http://devedge.netscape.com/library/manuals/2002/plugin/1.0/npn_api15.html#999713
kDebug(1431) << "g_NPN_ReloadPlugins()" << endl;
K3Process p;
p << KGlobal::dirs()->findExe("nspluginscan");
QString prog = KGlobal::dirs()->findExe("nspluginscan");
if (reloadPages) {
// This is the proper way, but it cannot be done because we have no
......@@ -518,9 +517,9 @@ void g_NPN_ReloadPlugins(NPBool reloadPages)
// Let's only allow the caller to be reloaded, not everything.
//if (_callback)
// _callback->reloadPage();
p.start(K3Process::DontCare);
QProcess::startDetached(prog);
} else {
p.start(K3Process::DontCare);
QProcess::startDetached(prog);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment