GNOME Bugzilla – Bug 761552
Warnings in filechooser when typing-to-search in Recent
Last modified: 2016-02-04 15:59:51 UTC
How to reproduce: * Create a filechooser with a filter that doesn't match anything * Run filechooser. "Recent" place will be selected by default (it is for me) * Start typing to search GTK will spew a few warnings. This happens because nothing is found and location of the GtkQuery remains NULL, which is then passed to some functions for checking.
Created attachment 320430 [details] [review] Don't do remote checks on NULL files Calling _gtk_file_consider_as_remote() with a NULL argument results in warnings being thrown. Note that query->priv->location being NULL is a state that does not seem to be invalid by itself. This could happen if you do search-as-you-type in a filechooser, which has a filter that does not match anything *and* the current "place" selected is "Recent".
Review of attachment 320430 [details] [review]: ok
Attachment 320430 [details] pushed as 4a49d8d - Don't do remote checks on NULL files