Fix NewFileDialog positioning on macOS

This commit is contained in:
Florian Märkl 2019-03-10 23:33:04 +01:00
parent 7a77eeee06
commit c3f1636aee

View File

@ -51,7 +51,7 @@ static QIcon getIconFor(const QString &str, int pos)
} }
NewFileDialog::NewFileDialog(MainWindow *main) : NewFileDialog::NewFileDialog(MainWindow *main) :
QDialog(main), QDialog(nullptr), // no parent on purpose, using main causes weird positioning
ui(new Ui::NewFileDialog), ui(new Ui::NewFileDialog),
main(main) main(main)
{ {