From e48d35d9eef518e6113c56769826d2160e57e81d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Jan 2025 03:00:14 +0100 Subject: Fix override_path usage in FileDialog. The override_path is a file, so the initial path for the file picker must be the parent. --- src/wx/file_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/file_dialog.cc b/src/wx/file_dialog.cc index 9f547f85a..a726b306a 100644 --- a/src/wx/file_dialog.cc +++ b/src/wx/file_dialog.cc @@ -38,7 +38,7 @@ wxString initial_path( ) { if (override_path) { - return std_to_wx(override_path->string()); + return std_to_wx(override_path->parent_path().string()); } return std_to_wx(Config::instance()->initial_path(initial_path_key).get_value_or(home_directory()).string()); -- cgit v1.2.3