mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
SingleShot guarding
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackcore/db/backgrounddataupdater.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
|
||||
#include <QValidator>
|
||||
|
||||
using namespace BlackMisc;
|
||||
@@ -38,7 +39,12 @@ namespace BlackGui
|
||||
connect(ui->cb_AllowExcludeModels, &QCheckBox::toggled, this, &CSettingsModelComponent::allowExcludedModelsChanged);
|
||||
|
||||
// start updater if not yet done
|
||||
QTimer::singleShot(2500, this, &CSettingsModelComponent::consolidationEntered);
|
||||
QPointer<CSettingsModelComponent> myself(this);
|
||||
QTimer::singleShot(2500, this, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
this->consolidationEntered();
|
||||
});
|
||||
}
|
||||
|
||||
CSettingsModelComponent::~CSettingsModelComponent()
|
||||
|
||||
Reference in New Issue
Block a user