Skip to content

Commit

Permalink
File Dialog: update selection data when updating fileview
Browse files Browse the repository at this point in the history
This fixes an issue where the relevant selection wasn't updated when, say, deleting a file.
  • Loading branch information
Vultraz committed Mar 23, 2017
1 parent aeaf44d commit 5e07b27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/dialogs/file_dialog.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 5e07b27

Please sign in to comment.