mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
filechooser: Avoid a critical
This was showing up when calling some filechooser api on a native filechooser, where we use a filechooser dialog behind the scenes, but it does not have focus. Fixes: #4077
This commit is contained in:
parent
c88dc98b7c
commit
8ff9c851ce
@ -5444,6 +5444,7 @@ gtk_file_chooser_widget_get_files (GtkFileChooser *chooser)
|
|||||||
goto file_entry;
|
goto file_entry;
|
||||||
}
|
}
|
||||||
else if (impl->location_entry &&
|
else if (impl->location_entry &&
|
||||||
|
current_focus &&
|
||||||
(current_focus == impl->location_entry ||
|
(current_focus == impl->location_entry ||
|
||||||
gtk_widget_is_ancestor (current_focus, impl->location_entry)))
|
gtk_widget_is_ancestor (current_focus, impl->location_entry)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user