Commit 867fc3d9 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

Show the next file after deleting the current file

parent 43c70246
......@@ -2076,9 +2076,9 @@ folder_changed_cb (GthMonitor *monitor,
current_file_deleted = TRUE;
file_store = gth_browser_get_file_store (browser);
pos = gth_file_store_find_visible (file_store, browser->priv->current_file->file);
new_file = gth_file_store_get_file_at_pos (file_store, pos - 1);
new_file = gth_file_store_get_file_at_pos (file_store, pos + 1);
if (new_file == NULL)
new_file = gth_file_store_get_file_at_pos (file_store, pos + 1);
new_file = gth_file_store_get_file_at_pos (file_store, pos - 1);
if (new_file != NULL)
new_file = g_object_ref (new_file);
}
......
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