diff --git a/app/batchextract.h b/app/batchextract.h --- a/app/batchextract.h +++ b/app/batchextract.h @@ -223,7 +223,6 @@ QStringList m_failedFiles; bool m_preservePaths; bool m_openDestinationAfterExtraction; - bool m_registered; }; #endif // BATCHEXTRACT_H diff --git a/app/batchextract.cpp b/app/batchextract.cpp --- a/app/batchextract.cpp +++ b/app/batchextract.cpp @@ -47,19 +47,15 @@ : KCompositeJob(parent), m_autoSubfolder(false), m_preservePaths(true), - m_openDestinationAfterExtraction(false), - m_registered(false) + m_openDestinationAfterExtraction(false) { setCapabilities(KJob::Killable); connect(this, &KJob::result, this, &BatchExtract::showFailedFiles); } BatchExtract::~BatchExtract() { - if (m_registered) { - KIO::getJobTracker()->unregisterJob(this); - } } void BatchExtract::addExtraction(const QUrl& url) @@ -121,7 +117,6 @@ } KIO::getJobTracker()->registerJob(this); - m_registered = true; emit description(this, i18n("Extracting Files"),