gui: statistics: set attribute Qt::WA_DeleteOnClose for the window

to free memory on close.

before opening->clicked through all tabs->after closing
without WA_DeleteOnClose:
 180->225->225 ; ->225->225...
with WA_DeleteOnClose:
 180->226->187 ; ->224->189...

There is a mud with spaceotabulation, so don't poke me for doing
automatic things for indentation, instead of understanding what should
be there for new code.
'tis no more saves last opened statistics' tab,
but hopefully nobody needs such a thing.
This commit is contained in:
chelovechishko 2022-04-12 16:28:58 +09:00
parent c38156ee82
commit 25837426a9

View File

@ -97,6 +97,7 @@ StatisticsWindow::StatisticsWindow(QWidget *parent) :
ui(new Ui::StatisticsWindow)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose, true);
Settings->loadWidgetInformation(this);