File Dialog: update selection data when updating fileview

This fixes an issue where the relevant selection wasn't updated when, say, deleting a file.
This commit is contained in:
Charles Dang 2017-03-23 22:03:26 +11:00
parent aeaf44da03
commit 5e07b27500

View file

@ -534,6 +534,8 @@ void file_dialog::refresh_fileview(window& window)
find_widget<styled_widget>(&window, "current_dir", false).set_label(current_dir_);
set_input_text(find_widget<text_box>(&window, "filename", false), current_entry_);
on_row_selected(window);
}
void file_dialog::push_fileview_row(listbox& filelist, const std::string& name, const std::string& icon, bool check_selection)