Commit 960a39e9 authored by Igor Kushnir's avatar Igor Kushnir

ParseProjectJob: don't unregister with RunController redundantly

KJob::finished() signal is guaranteed to be emitted from ~KJob() or
earlier. RunController::finished() slot is connected to this signal and
unregisters the job that emits it.

GIT_SILENT
parent 0b037a8c
......@@ -22,7 +22,6 @@
#include <interfaces/icore.h>
#include <interfaces/ilanguagecontroller.h>
#include <interfaces/iruncontroller.h>
#include <interfaces/idocumentcontroller.h>
#include <interfaces/iprojectcontroller.h>
#include <interfaces/iproject.h>
......@@ -64,9 +63,6 @@ bool ParseProjectJob::doKill()
ParseProjectJob::~ParseProjectJob()
{
ICore::self()->languageController()->backgroundParser()->revertAllRequests(this);
if (ICore::self()->runController()->currentJobs().contains(this))
ICore::self()->runController()->unregisterJob(this);
}
ParseProjectJob::ParseProjectJob(IProject* project, bool forceUpdate, bool forceAll)
......
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