mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-23 16:39:16 -04:00
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:
parent
c38156ee82
commit
25837426a9
@ -97,6 +97,7 @@ StatisticsWindow::StatisticsWindow(QWidget *parent) :
|
||||
ui(new Ui::StatisticsWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
Settings->loadWidgetInformation(this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user