mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
SingleShot guarding
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
#include "blackgui/guiapplication.h"
|
#include "blackgui/guiapplication.h"
|
||||||
#include "blackcore/db/backgrounddataupdater.h"
|
#include "blackcore/db/backgrounddataupdater.h"
|
||||||
#include "blackmisc/logmessage.h"
|
#include "blackmisc/logmessage.h"
|
||||||
|
|
||||||
#include <QValidator>
|
#include <QValidator>
|
||||||
|
|
||||||
using namespace BlackMisc;
|
using namespace BlackMisc;
|
||||||
@@ -38,7 +39,12 @@ namespace BlackGui
|
|||||||
connect(ui->cb_AllowExcludeModels, &QCheckBox::toggled, this, &CSettingsModelComponent::allowExcludedModelsChanged);
|
connect(ui->cb_AllowExcludeModels, &QCheckBox::toggled, this, &CSettingsModelComponent::allowExcludedModelsChanged);
|
||||||
|
|
||||||
// start updater if not yet done
|
// 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()
|
CSettingsModelComponent::~CSettingsModelComponent()
|
||||||
|
|||||||
Reference in New Issue
Block a user