Enable Qt::WA_DeleteOnClose for PreferencesDialog

This commit is contained in:
Florian Märkl 2018-02-27 14:08:39 +01:00
parent 8c3d8d77cb
commit f01fa9d4ea

View File

@ -16,6 +16,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent)
: QDialog(parent),
ui(new Ui::PreferencesDialog)
{
setAttribute(Qt::WA_DeleteOnClose);
ui->setupUi(this);
#define ADD_TAB(c) { auto w = new c(this); ui->tabWidget->addTab(w, w->windowTitle()); }