Changeset View
Changeset View
Standalone View
Standalone View
krusader/Synchronizer/synchronizertask.cpp
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Line(s) | 226 | { | |||
---|---|---|---|---|---|
267 | } while (false); | 267 | } while (false); | ||
268 | 268 | | |||
269 | KIO::TransferJob *otherJob = (job == leftReadJob) ? rightReadJob : leftReadJob; | 269 | KIO::TransferJob *otherJob = (job == leftReadJob) ? rightReadJob : leftReadJob; | ||
270 | 270 | | |||
271 | if (otherJob == nullptr) { | 271 | if (otherJob == nullptr) { | ||
272 | if (compareArray.size()) | 272 | if (compareArray.size()) | ||
273 | abortContentComparing(); | 273 | abortContentComparing(); | ||
274 | } else { | 274 | } else { | ||
275 | if (!((KIO::TransferJob *)job)->isSuspended()) { | 275 | if (!(dynamic_cast<KIO::TransferJob *>(job))->isSuspended()) { | ||
276 | ((KIO::TransferJob *)job)->suspend(); | 276 | (dynamic_cast<KIO::TransferJob *>(job))->suspend(); | ||
277 | otherJob->resume(); | 277 | otherJob->resume(); | ||
278 | } | 278 | } | ||
279 | } | 279 | } | ||
280 | } | 280 | } | ||
281 | 281 | | |||
282 | void CompareContentTask::slotFinished(KJob *job) | 282 | void CompareContentTask::slotFinished(KJob *job) | ||
283 | { | 283 | { | ||
284 | KIO::TransferJob *otherJob = (job == leftReadJob) ? rightReadJob : leftReadJob; | 284 | KIO::TransferJob *otherJob = (job == leftReadJob) ? rightReadJob : leftReadJob; | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |