mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Tidying up around QPointer guards.
This commit is contained in:
committed by
Klaus Basan
parent
3d935485dd
commit
61d933be12
@@ -200,16 +200,12 @@ namespace BlackMisc
|
||||
if (!CThreadUtils::isCurrentThreadObjectThread(this))
|
||||
{
|
||||
// shift in correct thread
|
||||
if (!this->isFinished())
|
||||
QPointer<CContinuousWorker> myself(this);
|
||||
QTimer::singleShot(0, this, [ = ]
|
||||
{
|
||||
QPointer<CContinuousWorker> myself(this);
|
||||
QTimer::singleShot(0, this, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
if (this->isFinished()) { return; }
|
||||
this->startUpdating(updateTimeSecs);
|
||||
});
|
||||
}
|
||||
if (!myself) { return; }
|
||||
this->doIfNotFinished([ = ] { startUpdating(updateTimeSecs); });
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user