Skip to content

Commit

Permalink
Merge ElucidataInc#1377 from MdAzmatAli/fix_csvreports
Browse files Browse the repository at this point in the history
[FIX] empty .csv when label is selected
  • Loading branch information
saif-el authored Feb 17, 2021
2 parents 813b019 + 8f660f4 commit ae8d39d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/mzroll/tabledockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,8 @@ void TableDockWidget::exportGroupsToSpreadsheet() {
QList<shared_ptr<PeakGroup>> selectedGroups = getSelectedGroups();
csvreports.setSelectionFlag(static_cast<int>(peakTableSelection));

for (auto group : _topLevelGroups) {
if (selectedGroups.contains(group))
csvreports.addGroup(group.get());
for (auto group : selectedGroups) {
csvreports.addGroup(group.get());
}

if (csvreports.getErrorReport() != "") {
Expand Down

0 comments on commit ae8d39d

Please sign in to comment.