Commit b58d8271 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Avoid crash if we've not set the content view of the window yet.

2007-01-31  Alexander Larsson  <alexl@redhat.com>

	* src/nautilus-application.c (nautilus_application_present_spatial_window_with_selection):
	Avoid crash if we've not set the content view of the window yet.



svn path=/trunk/; revision=12712
parent a60e2aa8
2007-01-31 Alexander Larsson <alexl@redhat.com>
* src/nautilus-application.c (nautilus_application_present_spatial_window_with_selection):
Avoid crash if we've not set the content view of the window yet.
2007-01-31 Alexander Larsson <alexl@redhat.com>
* src/nautilus-file-management-properties.c (update_icon_captions_from_gconf):
......
......@@ -1139,7 +1139,8 @@ nautilus_application_present_spatial_window_with_selection (NautilusApplication
#endif
gtk_window_present (GTK_WINDOW (existing_window));
if (new_selection) {
if (new_selection &&
existing_window->content_view != NULL) {
nautilus_view_set_selection (existing_window->content_view, new_selection);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment