fix(cpn): startup crash when "prompt for radio profile" enabled (#5861)

This commit is contained in:
Neil Horne
2025-02-03 09:37:43 +10:00
committed by GitHub
parent 79a859b541
commit 615f966bc2
+2 -2
View File
@@ -88,6 +88,8 @@ MainWindow::MainWindow():
updateDelay += (SPLASH_TIME*1000);
}
updateFactories = new UpdateFactories();
if (g.isFirstUse()) {
g.warningId(g.warningId() | AppMessages::MSG_WELCOME);
QTimer::singleShot(updateDelay-500, this, SLOT(editAppSettings())); // must be shown before warnings dialog but after splash
@@ -144,8 +146,6 @@ MainWindow::MainWindow():
QTimer::singleShot(0, this, SLOT(autoClose()));
}
updateFactories = new UpdateFactories();
if (checkProfileRadioExists(g.sessionId()))
QTimer::singleShot(updateDelay, this, &MainWindow::autoCheckForUpdates);
else