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

Check for content_view != NULL before saving current location the old view

2003-09-18  Alexander Larsson  <alexl@redhat.com>

	* src/nautilus-window-manage-views.c (begin_location_change):
	Check for content_view != NULL before saving current location
	the old view might have failed. Fixes bug #119407.
	Thanks to Narayana Pattipati for discovering this.
parent a35dc284
2003-09-18 Alexander Larsson <alexl@redhat.com>
* src/nautilus-window-manage-views.c (begin_location_change):
Check for content_view != NULL before saving current location
the old view might have failed. Fixes bug #119407.
Thanks to Narayana Pattipati for discovering this.
2003-09-18 Alexander Larsson <alexl@redhat.com>
* src/nautilus-main.c (main):
......
......@@ -1545,7 +1545,8 @@ begin_location_change (NautilusWindow *window,
nautilus_directory_unref (directory);
/* Set current_bookmark scroll pos */
if (window->current_location_bookmark != NULL) {
if (window->current_location_bookmark != NULL &&
window->content_view != NULL) {
current_pos = nautilus_view_frame_get_first_visible_file (window->content_view);
nautilus_bookmark_set_scroll_pos (window->current_location_bookmark, current_pos);
g_free (current_pos);
......
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