diff --git a/src/dialogs/NewFileDialog.cpp b/src/dialogs/NewFileDialog.cpp
index fbd8d710..3a5de945 100644
--- a/src/dialogs/NewFileDialog.cpp
+++ b/src/dialogs/NewFileDialog.cpp
@@ -273,7 +273,7 @@ bool NewFileDialog::fillProjectsList()
void NewFileDialog::loadFile(const QString &filename)
{
- if (!Core()->tryFile(filename, false)) {
+ if (!ui->checkBox_FilelessOpen->isChecked() && !Core()->tryFile(filename, false)) {
QMessageBox msgBox(this);
msgBox.setText(tr("Select a new program or a previous one before continuing."));
msgBox.exec();
@@ -293,7 +293,7 @@ void NewFileDialog::loadFile(const QString &filename)
// Close dialog and open MainWindow/OptionsDialog
MainWindow *main = new MainWindow();
main->openNewFile(filename);
-
+
close();
}
diff --git a/src/dialogs/NewfileDialog.ui b/src/dialogs/NewfileDialog.ui
old mode 100644
new mode 100755
index 8ac62b30..3d51b44e
--- a/src/dialogs/NewfileDialog.ui
+++ b/src/dialogs/NewfileDialog.ui
@@ -274,6 +274,13 @@
+ -
+
+
+ Don't open any file
+
+
+
-