mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +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);
|
auto o = new InitialOptionsDialog(this);
|
||||||
o->setAttribute(Qt::WA_DeleteOnClose);
|
o->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
o->loadOptions(options);
|
|
||||||
o->show();
|
|
||||||
|
|
||||||
if (skipOptionsDialog) {
|
if (skipOptionsDialog) {
|
||||||
o->setupAndStartAnalysis();
|
o->setupAndStartAnalysis();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
o->loadOptions(options);
|
||||||
|
o->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::openProject(const QString &project_name)
|
void MainWindow::openProject(const QString &project_name)
|
||||||
|
@ -369,7 +369,7 @@ void NewFileDialog::loadFile(const QString &filename)
|
|||||||
ioFile += filename;
|
ioFile += filename;
|
||||||
InitialOptions options;
|
InitialOptions options;
|
||||||
options.filename = ioFile;
|
options.filename = ioFile;
|
||||||
main->openNewFile(options);
|
main->openNewFile(options, ui->checkBox_FilelessOpen->isChecked());
|
||||||
|
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user