[Simulator] Make sure a default Data File is always suggested in startup dialog; Fix silent exit upon startup if no file/data was provided.
This commit is contained in:
@@ -276,11 +276,14 @@ int main(int argc, char *argv[])
|
||||
int result = 1;
|
||||
SimulatorDialog * dialog = new SimulatorDialog(NULL, simulator, SIMULATOR_FLAGS_STANDALONE);
|
||||
dialog->setRadioProfileId(profileId);
|
||||
if ((result = (int)dialog->setOptions(simOptions, true))) {
|
||||
if (dialog->setOptions(simOptions, true)) {
|
||||
dialog->start();
|
||||
dialog->show();
|
||||
result = app.exec();
|
||||
}
|
||||
else {
|
||||
result = 3;
|
||||
}
|
||||
g.id(oldProfId);
|
||||
delete dialog;
|
||||
delete simulator;
|
||||
|
||||
Reference in New Issue
Block a user