Fix potential crash in StatusControl

This commit is contained in:
WarmUpTill
2024-06-27 21:08:44 +02:00
committed by WarmUpTill
parent 5bd3341681
commit 223ce0d0a0

View File

@@ -131,7 +131,9 @@ void StatusControl::SetStarted()
_button->setText(
obs_module_text("AdvSceneSwitcher.generalTab.status.stop"));
_status->setText(obs_module_text("AdvSceneSwitcher.status.active"));
_pulse->deleteLater();
if (_pulse) {
_pulse->deleteLater();
}
SetStatusStyleSheet(false);
_setToStopped = false;
}