Don't show the "Load Options" dialog when choosing "Don't open any file" (#800)

* Don't show the "Load Options" dialog when choosing "Don't open any file" #712

* Load option only if skipOptionsDialog flag isn't set
This commit is contained in:
NieGrzegorz 2018-10-11 15:04:57 +02:00 committed by Itay Cohen
parent 7c37d3413f
commit ac4beedbd7
2 changed files with 6 additions and 3 deletions

View File

@ -370,12 +370,15 @@ void MainWindow::displayInitialOptionsDialog(const InitialOptions &options, bool
{
auto o = new InitialOptionsDialog(this);
o->setAttribute(Qt::WA_DeleteOnClose);
o->loadOptions(options);
o->show();
if (skipOptionsDialog) {
o->setupAndStartAnalysis();
}
else
{
o->loadOptions(options);
o->show();
}
}
void MainWindow::openProject(const QString &project_name)

View File

@ -369,7 +369,7 @@ void NewFileDialog::loadFile(const QString &filename)
ioFile += filename;
InitialOptions options;
options.filename = ioFile;
main->openNewFile(options);
main->openNewFile(options, ui->checkBox_FilelessOpen->isChecked());
close();
}