mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
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:
parent
7c37d3413f
commit
ac4beedbd7
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user