GUI: double notification after instrument data change?
The signal GISASInstrumentEditor::dataChanged is connected to these two functions:
void InstrumentView::onInstrumentChangedByEditor()
{
m_document->multiNotifier()->notifyInstrumentChanged(
m_instrumentListView->currentInstrumentItem());
}
void InstrumentLibraryEditor::onInstrumentChangedByEditor()
{
auto* currentInstrument = m_treeModel->itemForIndex(m_ui->treeView->currentIndex());
m_instrumentLibrary->editController()->notifyInstrumentChanged(currentInstrument);
}
Do they do different things? If yes, provide explanation in function intent comment. If no, remove one of them.