diff --git a/src/core/identificationgroup.cpp b/src/core/identificationgroup.cpp index b7de9ac35f2eced56873d6eb7713b6eb0d66fa61..490ebbf5dded027b3bccb234e6aff6ae86482009 100644 --- a/src/core/identificationgroup.cpp +++ b/src/core/identificationgroup.cpp @@ -209,7 +209,8 @@ void IdentificationGroup::startGrouping (const GroupingType & grouping_type) { } if (_p_grp_ptm_experiment != nullptr) { - startPtmGrouping(); + delete _p_grp_ptm_experiment; + _p_grp_ptm_experiment = nullptr; } qDebug() << "IdentificationGroup::startGrouping end "; } diff --git a/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp b/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp index 932bc80129247d5f209a3e7740068625b8d73cf8..1fbdbfafe74a37c56217ba430c425249a1533e6a 100644 --- a/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp +++ b/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp @@ -99,12 +99,13 @@ void PtmIslandListWindow::setIdentificationGroup(IdentificationGroup * p_identif void PtmIslandListWindow::doIdentificationPtmGroupGrouped(IdentificationGroup * p_identification_group) { qDebug() << "PtmIslandListWindow::doIdentificationPtmGroupGrouped begin"; if (_p_identification_group == p_identification_group) { + ui->ptm_island_tableview->resizeRowToContents(0); //_protein_table_model_p->setIdentificationGroup(p_identification_group); //_p_proxy_model->setSourceModel(_protein_table_model_p); _ptm_table_model_p->setIdentificationGroup(p_identification_group); emit ptmIslandDataChanged(); - ui->ptm_island_tableview->resizeRowToContents(_ptm_table_model_p->rowCount()); + //ui->ptm_island_tableview->resizeRowToContents(_ptm_table_model_p->rowCount()); } qDebug() << "PtmIslandListWindow::doIdentificationPtmGroupGrouped end";