added delete on close

This commit is contained in:
defnax 2020-01-13 13:19:26 +01:00
parent d0fcd90ccc
commit 737980bf12

View File

@ -35,6 +35,8 @@ PhotoView::PhotoView(QWidget *parent)
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */
ui->setupUi(this); ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose, true);
ui->shareButton->hide(); ui->shareButton->hide();
} }