mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
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:
@ -516,11 +516,12 @@ class ServersModel : public QAbstractListModel {
|
||||
});
|
||||
row++;
|
||||
}
|
||||
job->start();
|
||||
|
||||
connect(job, &ConcurrentTask::finished, [job]() {
|
||||
job->deleteLater();
|
||||
});
|
||||
|
||||
job->start();
|
||||
}
|
||||
|
||||
public slots:
|
||||
|
Reference in New Issue
Block a user