┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphin.cpp
diff options
context:
space:
mode:
authorKevin Ottens <[email protected]>2006-11-25 17:30:07 +0000
committerKevin Ottens <[email protected]>2006-11-25 17:30:07 +0000
commitc1af91aab193cf34b36bfacd39805eeaa48e19b1 (patch)
treef2f935a43482190706f9054c286a8f42ccb20bef /src/dolphin.cpp
parent92d346ae7838668c92643548a84fb2903c08c40d (diff)
Let's remove the connect errors because of the KJob/KIO::Job split.
svn path=/trunk/playground/utils/dolphin/; revision=607764
Diffstat (limited to 'src/dolphin.cpp')
-rw-r--r--src/dolphin.cpp25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/dolphin.cpp b/src/dolphin.cpp
index ac1f067a4..db4f46889 100644
--- a/src/dolphin.cpp
+++ b/src/dolphin.cpp
@@ -555,10 +555,10 @@ void Dolphin::deleteItems()
) == KMessageBox::Continue;
if (del) {
KIO::Job* job = KIO::del(list);
- connect(job, SIGNAL(result(KIO::Job*)),
- this, SLOT(slotHandleJobError(KIO::Job*)));
- connect(job, SIGNAL(result(KIO::Job*)),
- this, SLOT(slotDeleteFileFinished(KIO::Job*)));
+ connect(job, SIGNAL(result(KJob*)),
+ this, SLOT(slotHandleJobError(KJob*)));
+ connect(job, SIGNAL(result(KJob*)),
+ this, SLOT(slotDeleteFileFinished(KJob*)));
}
}
@@ -586,7 +586,7 @@ void Dolphin::quit()
close();
}
-void Dolphin::slotHandleJobError(KIO::Job* job)
+void Dolphin::slotHandleJobError(KJob* job)
{
if (job->error() != 0) {
m_activeView->statusBar()->setMessage(job->errorString(),
@@ -594,7 +594,7 @@ void Dolphin::slotHandleJobError(KIO::Job* job)
}
}
-void Dolphin::slotDeleteFileFinished(KIO::Job* job)
+void Dolphin::slotDeleteFileFinished(KJob* job)
{
if (job->error() == 0) {
m_activeView->statusBar()->setMessage(i18n("Delete operation completed."),
@@ -1000,7 +1000,7 @@ void Dolphin::editSettings()
dlg.exec();
}
-void Dolphin::addUndoOperation(KIO::Job* job)
+void Dolphin::addUndoOperation(KJob* job)
{
if (job->error() != 0) {
slotHandleJobError(job);
@@ -1028,7 +1028,12 @@ void Dolphin::addUndoOperation(KIO::Job* job)
// all source Urls must be updated with the trash Url. E. g. when moving
// a file "test.txt" and a second file "test.txt" to the trash,
// then the filenames in the trash are "0-test.txt" and "1-test.txt".
- QMap<QString, QString> metaData = job->metaData();
+ QMap<QString, QString> metaData;
+ KIO::Job *kiojob = qobject_cast<KIO::Job*>( job );
+ if ( kiojob )
+ {
+ metaData = kiojob->metaData();
+ }
KUrl::List newSourceUrls;
KUrl::List sourceUrls = command.source();
@@ -1613,8 +1618,8 @@ void Dolphin::addPendingUndoJob(KIO::Job* job,
const KUrl::List& source,
const KUrl& dest)
{
- connect(job, SIGNAL(result(KIO::Job*)),
- this, SLOT(addUndoOperation(KIO::Job*)));
+ connect(job, SIGNAL(result(KJob*)),
+ this, SLOT(addUndoOperation(KJob*)));
UndoInfo undoInfo;
undoInfo.id = job->progressId();