diff --git a/source/views/view_pattern_editor.cpp b/source/views/view_pattern_editor.cpp index af30cf157..b0751680b 100644 --- a/source/views/view_pattern_editor.cpp +++ b/source/views/view_pattern_editor.cpp @@ -337,7 +337,8 @@ namespace hex { ImGui::EndPopup(); } - if (ImGui::BeginPopupModal("hex.view.pattern.menu.file.load_pattern"_lang, nullptr, ImGuiWindowFlags_AlwaysAutoResize)) { + bool opened = true; + if (ImGui::BeginPopupModal("hex.view.pattern.menu.file.load_pattern"_lang, &opened, ImGuiWindowFlags_AlwaysAutoResize)) { if (ImGui::BeginListBox("##patterns", ImVec2(-FLT_MIN, 0))) {