forked from AuroraMiddleware/gtk
file chooser: Remove a wrong assumption
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.
This commit is contained in:
parent
17a860cea2
commit
ed1c349e0b
@ -5320,12 +5320,9 @@ get_files_foreach (GtkTreeModel *model,
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user