Commit ce92ad4a authored by Urs Wolfer's avatar Urs Wolfer
Browse files

port kdelibs trunk api changes

svn path=/branches/work/make_kget_cool/kget/; revision=647213
parent afcb54f2
......@@ -18,11 +18,11 @@
#include <kicon.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kprocess.h>
#include <ktoolbar.h>
#include <QAction>
#include <QPixmap>
#include <QProcess>
#include <QTreeWidget>
#include <QtDBus>
......@@ -124,9 +124,8 @@ void KGetLinkView::slotStartLeech()
{
if(!QDBusConnection::sessionBus().interface()->isServiceRegistered("org.kde.kget"))
{
KProcess *proc = new KProcess();
*proc << "kget" << urls;
proc->start( KProcess::DontCare );
QProcess *kgetProcess = new QProcess(this);
kgetProcess->startDetached("kget", urls);
}
else
{
......
......@@ -122,7 +122,7 @@ void MultiSegmentCopyJob::slotStart()
emitResult();
kDebug(5001) << "MultiSegmentCopyJob::slotStart() opening: " << m_dest_part << endl;
m_putJob = KIO::open(m_dest_part, 3);
m_putJob = KIO::open(m_dest_part, QIODevice::ReadWrite);
connect( m_putJob, SIGNAL(open(KIO::Job *)), SLOT(slotOpen(KIO::Job *)));
connect(m_putJob, SIGNAL(close(KIO::Job *)), SLOT(slotClose(KIO::Job *)));
connect( m_putJob, SIGNAL(written(KIO::Job * ,KIO::filesize_t )), SLOT(slotWritten( KIO::Job * ,KIO::filesize_t )));
......
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