Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 05c9fecc authored by Elvis Angelaccio's avatar Elvis Angelaccio

Stop manually unregister of BatchExtract jobs

After D3977, KDynamicJobTracker automatically unregisters jobs after
they emit `finished()`.

Differential Revision: D8322
parent 5ee79a80
......@@ -47,8 +47,7 @@ BatchExtract::BatchExtract(QObject* parent)
: KCompositeJob(parent),
m_autoSubfolder(false),
m_preservePaths(true),
m_openDestinationAfterExtraction(false),
m_registered(false)
m_openDestinationAfterExtraction(false)
{
setCapabilities(KJob::Killable);
......@@ -57,9 +56,6 @@ BatchExtract::BatchExtract(QObject* parent)
BatchExtract::~BatchExtract()
{
if (m_registered) {
KIO::getJobTracker()->unregisterJob(this);
}
}
void BatchExtract::addExtraction(const QUrl& url)
......@@ -121,7 +117,6 @@ void BatchExtract::slotStartJob()
}
KIO::getJobTracker()->registerJob(this);
m_registered = true;
emit description(this,
i18n("Extracting Files"),
......
......@@ -223,7 +223,6 @@ private:
QStringList m_failedFiles;
bool m_preservePaths;
bool m_openDestinationAfterExtraction;
bool m_registered;
};
#endif // BATCHEXTRACT_H
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