Skip to content

Commit

Permalink
[Fix] Explicitly delete peak-groups in table (no effect)
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-el committed Jan 7, 2021
1 parent e39a12c commit 217c31d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/gui/mzroll/tabledockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2367,8 +2367,9 @@ PeakTableDockWidget::~PeakTableDockWidget() {
delete toolBar;
}

void PeakTableDockWidget::destroy() {

void PeakTableDockWidget::destroy()
{
TableDockWidget::deleteAll(false);
cleanUp();
deleteLater();
_mainwindow->removePeaksTable(this);
Expand All @@ -2377,8 +2378,11 @@ void PeakTableDockWidget::destroy() {
void PeakTableDockWidget::deleteAll()
{
auto allDeleted = TableDockWidget::deleteAll();
if (allDeleted)
destroy();
if (allDeleted) {
cleanUp();
deleteLater();
_mainwindow->removePeaksTable(this);
}
}

void PeakTableDockWidget::cleanUp()
Expand Down

0 comments on commit 217c31d

Please sign in to comment.