Commit 5ee79a80 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Use KIO jobtracker from Part

It is confusing to have a jobtracker call another jobtracker.
They are both implementing the same interface in different ways, so
don't mix them but rather use both from `Part::registerJob()`.

Differential Revision: D8323
parent 73f0aacd
......@@ -23,10 +23,6 @@
#include "jobtracker.h"
#include "ark_debug.h"
#include <KIO/JobTracker>
#include <QDebug>
JobTrackerWidget::JobTrackerWidget(QWidget *parent)
: QFrame(parent)
{
......@@ -75,7 +71,6 @@ void JobTracker::registerJob(KJob *job)
{
m_jobs << job;
KJobTrackerInterface::registerJob(job);
KIO::getJobTracker()->registerJob(job);
m_ui->show();
m_ui->informationLabel->hide();
m_ui->progressBar->show();
......
......@@ -261,6 +261,8 @@ void Part::registerJob(KJob* job)
m_statusBarExtension->addStatusBarItem(m_jobTracker->widget(nullptr), 0, true);
m_jobTracker->widget(job)->show();
}
KIO::getJobTracker()->registerJob(job);
m_jobTracker->registerJob(job);
emit busy();
......
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