diff --git a/src/dialogs/NewFileDialog.cpp b/src/dialogs/NewFileDialog.cpp index 580733da..43b190b0 100644 --- a/src/dialogs/NewFileDialog.cpp +++ b/src/dialogs/NewFileDialog.cpp @@ -51,7 +51,7 @@ static QIcon getIconFor(const QString &str, int pos) } NewFileDialog::NewFileDialog(MainWindow *main) : - QDialog(main), + QDialog(nullptr), // no parent on purpose, using main causes weird positioning ui(new Ui::NewFileDialog), main(main) {