Code compilation fix

This commit is contained in:
Bruno Herbelin
2023-03-07 23:38:13 +01:00
parent 4c3c3de065
commit b8e0a9c1dd
11 changed files with 16 additions and 11 deletions

View File

@@ -1119,8 +1119,12 @@ void ImGuiVisitor::visit (CloneSource& s)
// link to origin source
if ( !s.failed() ) {
std::string label = std::string(s.origin()->initials()) + " - " + s.origin()->name();
if (ImGui::Button(label.c_str(), ImVec2(IMGUI_RIGHT_ALIGN, 0) ))
if (ImGui::Button(label.c_str(), ImVec2(IMGUI_RIGHT_ALIGN, 0) )) {
Mixer::manager().setCurrentSource(s.origin());
if (UserInterface::manager().navigator.pannelVisible())
UserInterface::manager().navigator.showPannelSource( Mixer::manager().indexCurrentSource() );
}
ImGui::SameLine(0, IMGUI_SAME_LINE);
ImGui::Text("Origin");
}