mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
Don't export filtered samples when the filter isn't visible
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user