Skip to content

Commit

Permalink
fix(cpn): startup crash when "prompt for radio profile" enabled (#5861)
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower authored Feb 2, 2025
1 parent 79a859b commit 615f966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions companion/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 615f966

Please sign in to comment.