From d1166878c71a4e46fc90482997d0a553352b456f Mon Sep 17 00:00:00 2001 From: Phillip Seitzer Date: Mon, 23 Sep 2024 16:38:54 -0700 Subject: [PATCH] Issue 739: Only export peak groups that are not filtered out. --- src/maven/tabledockwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/maven/tabledockwidget.cpp b/src/maven/tabledockwidget.cpp index 1ab14270..fe2aa5e5 100644 --- a/src/maven/tabledockwidget.cpp +++ b/src/maven/tabledockwidget.cpp @@ -1319,7 +1319,10 @@ void TableDockWidget::exportGroupsAsIsotopes() { foreach(QString h, header) isotopesReport << h.toStdString() << sep.c_str(); isotopesReport << endl; - for (PeakGroup *group : allgroups) { + //Issue 739: respect filters for this export + QList visibleGroups = getGroups(); + for (unsigned int i = 0; i < visibleGroups.size(); i++) { + PeakGroup *group = visibleGroups[i]; //Issue 685 if (group->deletedFlag) continue;