fix(cpn): startup crash when "prompt for radio profile" enabled (#5861)
This commit is contained in:
@@ -88,6 +88,8 @@ MainWindow::MainWindow():
|
|||||||
updateDelay += (SPLASH_TIME*1000);
|
updateDelay += (SPLASH_TIME*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateFactories = new UpdateFactories();
|
||||||
|
|
||||||
if (g.isFirstUse()) {
|
if (g.isFirstUse()) {
|
||||||
g.warningId(g.warningId() | AppMessages::MSG_WELCOME);
|
g.warningId(g.warningId() | AppMessages::MSG_WELCOME);
|
||||||
QTimer::singleShot(updateDelay-500, this, SLOT(editAppSettings())); // must be shown before warnings dialog but after splash
|
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()));
|
QTimer::singleShot(0, this, SLOT(autoClose()));
|
||||||
}
|
}
|
||||||
|
|
||||||
updateFactories = new UpdateFactories();
|
|
||||||
|
|
||||||
if (checkProfileRadioExists(g.sessionId()))
|
if (checkProfileRadioExists(g.sessionId()))
|
||||||
QTimer::singleShot(updateDelay, this, &MainWindow::autoCheckForUpdates);
|
QTimer::singleShot(updateDelay, this, &MainWindow::autoCheckForUpdates);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user