Avoid warnings when widgets are not created yet

This widget is created on-demand, so we can not unconditionally
set its sensitivity in some other place.
This commit is contained in:
Matthias Clasen
2011-08-28 22:30:24 -04:00
parent f64647077f
commit 676316bbd3

View File

@@ -4096,7 +4096,8 @@ check_copy_file_location_sensitivity (GtkFileChooserDefault *impl)
else
active = TRUE;
gtk_widget_set_sensitive (impl->browse_files_popup_menu_copy_file_location_item, active);
if (impl->browse_files_popup_menu_copy_file_location_item)
gtk_widget_set_sensitive (impl->browse_files_popup_menu_copy_file_location_item, active);
}
/* Constructs the popup menu for the file list if needed */