Fix OptionsDialog initialization warning

This commit is contained in:
Florian Märkl 2018-08-15 19:32:33 +02:00
parent 0c7b8f09be
commit b9436683d5

View File

@ -13,11 +13,11 @@
#include <QFileDialog> #include <QFileDialog>
OptionsDialog::OptionsDialog(MainWindow *main): OptionsDialog::OptionsDialog(MainWindow *main):
QDialog(0), // parent may not be main QDialog(0), // parent must not be main
ui(new Ui::OptionsDialog),
main(main), main(main),
core(Core()), core(Core()),
defaultAnalLevel(1), defaultAnalLevel(1)
ui(new Ui::OptionsDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));