The code for getting the selected files was assuming that
we are always in browse mode, and was causing warnings when
hitting Ctrl-L twice, right after opening the file chooser.
The fix is to simple use the model that is passed into the
callback.
GtkTreeIter *iter,
gpointer data)
{
- struct get_files_closure *info;
+ GtkFileSystemModel *fs_model = GTK_FILE_SYSTEM_MODEL (model);
+ struct get_files_closure *info = data;
GFile *file;
- GtkFileSystemModel *fs_model;
-
- info = data;
- fs_model = info->impl->priv->browse_files_model;
file = _gtk_file_system_model_get_file (fs_model, iter);
if (!file)