diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c7ab6f56d7..83c7926045 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -9,6 +9,7 @@ - Fix: [#6188] Viewports not being clipped properly when zoomed out in OpenGL mode. - Fix: Infinite loop when removing scenery elements with >127 base height. - Improved: [#6186] Transparent menu items now draw properly in OpenGL mode. +- Improved: Load/save window now refreshes list if native file dialog is closed/cancelled 0.1.1 (2017-08-09) ------------------------------------------------------------------------ diff --git a/src/openrct2/windows/LoadSave.cpp b/src/openrct2/windows/LoadSave.cpp index e535974809..2a4777836e 100644 --- a/src/openrct2/windows/LoadSave.cpp +++ b/src/openrct2/windows/LoadSave.cpp @@ -321,7 +321,17 @@ static void window_loadsave_mouseup(rct_window *w, rct_widgetindex widgetIndex) break; case WIDX_BROWSE: if (browse(isSave, path, sizeof(path))) + { window_loadsave_select(w, path); + } + else + { + // If user cancels file dialog, refresh list + safe_strcpy(path, _directory, sizeof(path)); + window_loadsave_populate_list(w, isSave, path, _extension); + window_init_scroll_widgets(w); + w->no_list_items = _listItemsCount; + } break; case WIDX_SORT_NAME: if (gConfigGeneral.load_save_sort == SORT_NAME_ASCENDING){