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>
OptionsDialog::OptionsDialog(MainWindow *main):
QDialog(0), // parent may not be main
QDialog(0), // parent must not be main
ui(new Ui::OptionsDialog),
main(main),
core(Core()),
defaultAnalLevel(1),
ui(new Ui::OptionsDialog)
defaultAnalLevel(1)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));