mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Crash when clicking on the welcome screen
This commit is contained in:
5
lib/external/imgui/source/imgui.cpp
vendored
5
lib/external/imgui/source/imgui.cpp
vendored
@@ -7383,10 +7383,7 @@ void ImGui::BringWindowToFocusFront(ImGuiWindow* window)
|
||||
IM_ASSERT(window == window->RootWindow);
|
||||
|
||||
const int cur_order = window->FocusOrder;
|
||||
// IMHEX PATCH BEGIN
|
||||
// REASON: crashes ImHex when clicking on the background on the welcome screen
|
||||
//IM_ASSERT(g.WindowsFocusOrder[cur_order] == window);
|
||||
// IMHEX PATCH END
|
||||
IM_ASSERT(g.WindowsFocusOrder[cur_order] == window);
|
||||
if (g.WindowsFocusOrder.back() == window)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user