diff --git a/src/editor/gui/widgets/KeyvalueEditor.cpp b/src/editor/gui/widgets/KeyvalueEditor.cpp index c994ea7f..73c48eec 100644 --- a/src/editor/gui/widgets/KeyvalueEditor.cpp +++ b/src/editor/gui/widgets/KeyvalueEditor.cpp @@ -42,7 +42,8 @@ void KeyvalueEditor::draw() { ImGui::Text("%s", cname.c_str()); } else if (ImGui::Button(sameClassesSelected ? (" " + cname + " ##kvcname").c_str() : "##kvcname")) { - ImGui::OpenPopup("classname_popup"); + if(fgd) + ImGui::OpenPopup("classname_popup"); } ImGui::PopFont();