diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -508,7 +508,7 @@ void MainWindow::showBarPlot(bool show) { if (show) { - auto plot = new BarPlot(&channelMan); + auto plot = new BarPlot(&channelMan, &plotMenu); plot->setYAxis(plotControlPanel.autoScale(), plotControlPanel.yMin(), plotControlPanel.yMax());