Don't export filtered samples when the filter isn't visible

This commit is contained in:
Mike Walters
2017-02-02 17:51:47 +00:00
parent 8d48d3b867
commit 54f951bf18
2 changed files with 7 additions and 2 deletions

View File

@@ -110,7 +110,11 @@ void PlotView::contextMenuEvent(QContextMenuEvent * event)
connect(
save, &QAction::triggered,
this, [=]() {
exportSamples(src);
if (selectedPlot == spectrogramPlot) {
exportSamples(spectrogramPlot->tunerEnabled() ? spectrogramPlot->output() : spectrogramPlot->input());
} else {
exportSamples(src);
}
}
);
menu.addAction(save);