[Simulator] Fix startup when using a new file for radio data (file is now properly created, errors from Storage are ignored); Do not start simulator at all in case of data errors; Fix startup option dialog when finding radio type from profile for first time; Fix RadioOptions struct version control; Cleanup unused WinConsole code; Fix a warning and a missing const reference; Move ~SimulatedUIWidget() to public.
This commit is contained in:
@@ -273,15 +273,16 @@ int main(int argc, char *argv[])
|
||||
g.id(profileId);
|
||||
g.simuLastProfId(profileId);
|
||||
|
||||
int result = 1;
|
||||
SimulatorDialog * dialog = new SimulatorDialog(NULL, simulator, SIMULATOR_FLAGS_STANDALONE);
|
||||
dialog->setRadioProfileId(profileId);
|
||||
dialog->setOptions(simOptions, true);
|
||||
dialog->start();
|
||||
dialog->show();
|
||||
int result = app.exec();
|
||||
|
||||
if ((result = (int)dialog->setOptions(simOptions, true))) {
|
||||
dialog->start();
|
||||
dialog->show();
|
||||
result = app.exec();
|
||||
}
|
||||
g.id(oldProfId);
|
||||
dialog->deleteLater();
|
||||
delete dialog;
|
||||
delete simulator;
|
||||
|
||||
return finish(result);
|
||||
|
||||
Reference in New Issue
Block a user