Skip to content

Commit

Permalink
[FIX] empty CSV when label is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
azmat committed Feb 17, 2021
1 parent 813b019 commit f292c4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/mzroll/tabledockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,10 +858,10 @@ 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() != "") {
QMessageBox msgBox(_mainwindow);
Expand Down

0 comments on commit f292c4d

Please sign in to comment.