From 485761f45c33cdf15578551a61a5f84f4e504e0a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 7 Dec 2020 00:42:52 +0100 Subject: [PATCH] Fixed ImHex refusing to be closed in some circumstances --- source/views/view_hexeditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index 7cf769e76..12c083588 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -89,6 +89,7 @@ namespace hex { if (ProjectFile::hasUnsavedChanges()) { glfwSetWindowShouldClose(window, GLFW_FALSE); + this->getWindowOpenState() = true; View::doLater([] { ImGui::OpenPopup("Save Changes"); }); } });