From 615f966bc27c923f01614d2cbc45e871b9bc8177 Mon Sep 17 00:00:00 2001 From: Neil Horne <15316949+elecpower@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:37:43 +1100 Subject: [PATCH] fix(cpn): startup crash when "prompt for radio profile" enabled (#5861) --- companion/src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index 362bed837..bad1760ab 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -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