mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fixed memleak
The model was not being deleted when the table was, and thus we recreated it for every print. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
426b640d2f
commit
30499fdb30
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ QTableView *PrintLayout::createProfileTable(ProfilePrintModel *model, const int
|
|||
// resize
|
||||
table->resize(tableW, profilePrintTableMaxH);
|
||||
// hide the grid and set a stylesheet
|
||||
table->setItemDelegate(new ProfilePrintDelegate(this));
|
||||
table->setItemDelegate(new ProfilePrintDelegate(table));
|
||||
table->setShowGrid(false);
|
||||
table->setStyleSheet(
|
||||
"QTableView { border: none }"
|
||||
|
|
Loading…
Add table
Reference in a new issue