Move onProgramChange connect to EditTab
MODIFY
src/edittab.cpp
src/edittab.cpp
@@ -78,7 +78,7 @@ EditTab::EditTab(QToolBar* toolbar, QWidget* parent) : RipesTab(toolbar, parent)
connect(ProcessorHandler::get(), &ProcessorHandler::procStateChangedNonRun, this,
&EditTab::updateProgramViewerHighlighting);
connect(ProcessorHandler::get(), &ProcessorHandler::programChanged, this, &EditTab::updateProgramViewer);
-
+ connect(ProcessorHandler::get(), &ProcessorHandler::processorChanged, this, &EditTab::onProcessorChanged);
onProcessorChanged();
sourceTypeChanged();
enableEditor();

MODIFY
src/mainwindow.cpp
src/mainwindow.cpp
@@ -107,7 +107,6 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), m_ui(new Ui::Main
setupStatusBar();
// Reset and program reload signals
- connect(ProcessorHandler::get(), &ProcessorHandler::processorChanged, editTab, &EditTab::onProcessorChanged);
connect(ProcessorHandler::get(), &ProcessorHandler::stopping, processorTab, &ProcessorTab::pause);
connect(ProcessorHandler::get(), &ProcessorHandler::processorReset, [=] { SystemIO::reset(); });

Move onProgramChange connect to EditTab