diff --git a/src/createnewdialog.cpp b/src/createnewdialog.cpp index 8dea4945..825c8334 100644 --- a/src/createnewdialog.cpp +++ b/src/createnewdialog.cpp @@ -9,7 +9,7 @@ createNewDialog::createNewDialog(QWidget *parent) : ui(new Ui::createNewDialog) { ui->setupUi(this); - w = new MainWindow(this); + w = new MainWindow(nullptr); w->core = new QRCore (); } @@ -22,7 +22,7 @@ void createNewDialog::on_pushButton_2_clicked() { // Close dialog and open OptionsDialog close(); - NewFileDialog* n = new NewFileDialog(this); + NewFileDialog* n = new NewFileDialog(nullptr); n->show(); } diff --git a/src/newfiledialog.cpp b/src/newfiledialog.cpp index be42702f..4f9f667f 100644 --- a/src/newfiledialog.cpp +++ b/src/newfiledialog.cpp @@ -100,7 +100,7 @@ void NewFileDialog::on_loadFileButton_clicked() } else { // Close dialog and open OptionsDialog close(); - OptionsDialog* o = new OptionsDialog(this); + OptionsDialog* o = new OptionsDialog(nullptr); o->setFilename (fname, this->strippedName(fname)); o->exec(); } @@ -145,7 +145,7 @@ void NewFileDialog::on_recentsList_itemDoubleClicked(QListWidgetItem *item) QString sitem = data.toString(); // Close dialog and open OptionsDialog close(); - OptionsDialog* o = new OptionsDialog(this); + OptionsDialog* o = new OptionsDialog(nullptr); o->setFilename (sitem, this->strippedName(sitem)); o->exec(); } @@ -177,7 +177,7 @@ void NewFileDialog::on_createButton_clicked() { // Close dialog and open create new file dialog close(); - createNewDialog* n = new createNewDialog(this); + createNewDialog* n = new createNewDialog(nullptr); n->exec(); } diff --git a/src/optionsdialog.cpp b/src/optionsdialog.cpp index 3b32f028..2d1d00f9 100644 --- a/src/optionsdialog.cpp +++ b/src/optionsdialog.cpp @@ -73,7 +73,7 @@ void OptionsDialog::on_okButton_clicked() //ui->progressBar->setValue(5); // Close dialog and open OptionsDialog - this->w = new MainWindow(this); + this->w = new MainWindow(nullptr); this->w->core = this->core; // Fill asm plugins in hexdump combo @@ -234,7 +234,7 @@ void OptionsDialog::on_cancelButton_clicked() this->core = NULL; // implicit by delete? // Close dialog and open OptionsDialog close(); - NewFileDialog* n = new NewFileDialog(this); + NewFileDialog* n = new NewFileDialog(nullptr); n->show(); }