From 0b7f45e960479705bd8b1eb1fc879e6f55f301ce Mon Sep 17 00:00:00 2001
From: EyeGuy <vanya619@list.ru>
Date: Sun, 16 Feb 2025 16:26:38 +0300
Subject: [PATCH] Fix file browser window

---
 source/terrax/PropertyWindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/terrax/PropertyWindow.cpp b/source/terrax/PropertyWindow.cpp
index 07f5fd470..75896547e 100644
--- a/source/terrax/PropertyWindow.cpp
+++ b/source/terrax/PropertyWindow.cpp
@@ -515,7 +515,7 @@ INT_PTR CALLBACK CPropertyWindow::dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LP
 
 			memset(&ofn, 0, sizeof(OPENFILENAMEW));
 			ofn.lStructSize = sizeof(OPENFILENAMEW);
-			ofn.hwndOwner = NULL;
+			ofn.hwndOwner = m_hDlgWnd;
 			ofn.lpstrFile = szFile;
 			ofn.nMaxFile = sizeof(szFile);
 			ofn.lpstrFilter = szFilter;
-- 
GitLab