connect job to deletion task before starting it
This ensures the signal is not fired before we have connected it
This commit is contained in:
parent
ca52d00b80
commit
26f50f9b81
1 changed files with 2 additions and 1 deletions
|
@ -516,11 +516,12 @@ class ServersModel : public QAbstractListModel {
|
||||||
});
|
});
|
||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
job->start();
|
|
||||||
|
|
||||||
connect(job, &ConcurrentTask::finished, [job]() {
|
connect(job, &ConcurrentTask::finished, [job]() {
|
||||||
job->deleteLater();
|
job->deleteLater();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
job->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue