Changeset View
Changeset View
Standalone View
Standalone View
kuiserver/progresslistmodel.cpp
Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Line(s) | 311 | if (m_registeredServices.contains(name)) { | |||
---|---|---|---|---|---|
320 | } | 320 | } | ||
321 | */ | 321 | */ | ||
322 | } | 322 | } | ||
323 | 323 | | |||
324 | QList<JobView*> jobs = m_jobViewsOwners.values(name); | 324 | QList<JobView*> jobs = m_jobViewsOwners.values(name); | ||
325 | if (!jobs.isEmpty()) { | 325 | if (!jobs.isEmpty()) { | ||
326 | m_jobViewsOwners.remove(name); | 326 | m_jobViewsOwners.remove(name); | ||
327 | Q_FOREACH(JobView *job, jobs) { | 327 | Q_FOREACH(JobView *job, jobs) { | ||
328 | if (job->isTerminated()) { | ||||
329 | continue; | ||||
330 | } | ||||
328 | job->setError(KIO::ERR_SLAVE_DIED); | 331 | job->setError(KIO::ERR_SLAVE_DIED); | ||
329 | job->terminate(job->errorText()); | 332 | job->terminate(job->errorText()); | ||
330 | } | 333 | } | ||
331 | } | 334 | } | ||
332 | } | 335 | } | ||
333 | 336 | | |||
334 | QStringList ProgressListModel::registeredJobContacts() | 337 | QStringList ProgressListModel::registeredJobContacts() | ||
335 | { | 338 | { | ||
336 | QStringList output; | 339 | QStringList output; | ||
337 | foreach (JobView* jobView, m_jobViews) { | 340 | foreach (JobView* jobView, m_jobViews) { | ||
338 | output.append(jobView->jobContacts()); | 341 | output.append(jobView->jobContacts()); | ||
339 | } | 342 | } | ||
340 | return output; | 343 | return output; | ||
341 | } | 344 | } | ||
342 | 345 | | |||
343 | 346 | |