diff --git a/src/ngscopeclient/MainWindow_Menus.cpp b/src/ngscopeclient/MainWindow_Menus.cpp index c86b93f4..5fe3889f 100644 --- a/src/ngscopeclient/MainWindow_Menus.cpp +++ b/src/ngscopeclient/MainWindow_Menus.cpp @@ -738,7 +738,7 @@ void MainWindow::WindowGeneratorMenu() //Add it to the menu if(ImGui::MenuItem(generator->m_nickname.c_str())) - m_session.AddInstrument(generator); + AddDialog(make_shared(generator, &m_session)); } ImGui::EndMenu();