diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-17 03:00:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-22 14:34:25 +0100 |
| commit | e48d35d9eef518e6113c56769826d2160e57e81d (patch) | |
| tree | 9783c343246894a45217c42aa9988e8ead61ad44 | |
| parent | 4b03cf0a567bc2f4528cf723c35141bd5ae0f65d (diff) | |
Fix override_path usage in FileDialog.
The override_path is a file, so the initial path for the file picker
must be the parent.
| -rw-r--r-- | src/wx/file_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |
