Changed UI text for legal component and improved "guarding" for shutdown

This commit is contained in:
Klaus Basan
2018-07-13 01:47:17 +02:00
parent 6fd32bb00d
commit 5d615f5585
2 changed files with 5 additions and 1 deletions

View File

@@ -54,12 +54,14 @@ namespace BlackGui
QPointer<CInterpolationSetupComponent> myself(this);
QTimer::singleShot(1000, this, [ = ]
{
if (!sGui || sGui->isShuttingDown()) { return; }
if (myself.isNull()) { return; }
this->onModeChanged();
});
QTimer::singleShot(30 * 1000, this, [ = ]
{
if (!sGui || sGui->isShuttingDown()) { return; }
if (myself.isNull()) { return; }
this->onSetupChanged();
});
@@ -85,6 +87,7 @@ namespace BlackGui
void CInterpolationSetupComponent::onModeChanged()
{
if (!sGui || sGui->isShuttingDown()) { return; }
bool enableCallsign = false;
if (this->getSetupMode() == CInterpolationSetupComponent::Global)
{
@@ -237,6 +240,7 @@ namespace BlackGui
void CInterpolationSetupComponent::onSetupChanged()
{
if (!sGui || sGui->isShuttingDown()) { return; }
this->displaySetupsPerCallsign();
}