diff --git a/similar/main/menu.cpp b/similar/main/menu.cpp index c67857e39..97644d914 100644 --- a/similar/main/menu.cpp +++ b/similar/main/menu.cpp @@ -2380,8 +2380,7 @@ static void polygon_models_viewer() return; } - while (window_exists(wind)) - event_process(); + while (event_process() != window_event_result::deleted) {} } namespace dsx {