Commit 889df013 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Selection is already GFiles now, no need to convert from uris (#514458)

2008-02-06  Alexander Larsson  <alexl@redhat.com>

        * src/nautilus-window-manage-views.c:
        (nautilus_window_reload):
	Selection is already GFiles now, no need to
	convert from uris (#514458)
	Patch from John Millikin



svn path=/trunk/; revision=13700
parent fff1fc06
2008-02-06 Alexander Larsson <alexl@redhat.com>
* src/nautilus-window-manage-views.c:
(nautilus_window_reload):
Selection is already GFiles now, no need to
convert from uris (#514458)
Patch from John Millikin
2008-02-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
......
......@@ -1916,7 +1916,6 @@ nautilus_window_reload (NautilusWindow *window)
{
GFile *location;
char *current_pos;
GList *selection_uris, *l;
GList *selection;
g_return_if_fail (NAUTILUS_IS_WINDOW (window));
......@@ -1933,13 +1932,7 @@ nautilus_window_reload (NautilusWindow *window)
selection = NULL;
if (window->content_view != NULL) {
current_pos = nautilus_view_get_first_visible_file (window->content_view);
selection_uris = nautilus_view_get_selection (window->content_view);
selection = NULL;
for (l = selection_uris; l != NULL; l = l->next) {
selection = g_list_prepend (selection, g_file_new_for_uri (l->data));
}
eel_g_list_free_deep (selection_uris);
selection = g_list_reverse (selection);
selection = nautilus_view_get_selection (window->content_view);
}
begin_location_change
(window, location, 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