[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/libkonq
From: Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date: 2007-06-17 11:28:30
Message-ID: 1182079710.623975.11552.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 676659 by chehrlic:
k3process--
M +6 -4 konq_operations.cc
--- trunk/KDE/kdebase/libkonq/konq_operations.cc #676658:676659
@@ -30,9 +30,10 @@
#include <knotification.h>
#include <krun.h>
#include <kshell.h>
+#include <kprocess.h>
#include <kshortcut.h>
#include <kprotocolmanager.h>
-#include <k3process.h>
+#include <kshell.h>
#include <kio/job.h>
#include <kio/deletejob.h>
#include <kio/jobuidelegate.h>
@@ -448,15 +449,16 @@
// (If this fails, there is a bug in KFileItem::acceptsDrops / \
KDirModel::flags)
kDebug(1203) << "KonqOperations::doDrop " << m_destUrl.path() << "should be \
an executable" << endl;
Q_ASSERT ( access( QFile::encodeName(m_destUrl.path()), X_OK ) == 0 );
- K3Process proc;
+ KProcess proc;
proc << m_destUrl.path() ;
// Launch executable for each of the files
+ QStringList args;
KUrl::List lst = m_info->urls;
KUrl::List::Iterator it = lst.begin();
for ( ; it != lst.end() ; it++ )
- proc << (*it).path(); // assume local files
+ args << (*it).path(); // assume local files
kDebug(1203) << "starting " << m_destUrl.path() << " with " << lst.count() \
<< " arguments" << endl;
- proc.start( K3Process::DontCare );
+ KProcess::startDetached( m_destUrl.path(), args );
}
delete this;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic