Commit 67c19671 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

browser: always expand the loaded folder in the tree view

parent 3bf0abb7
......@@ -1455,7 +1455,7 @@ load_data_continue (LoadData *load_data,
GList *scan;
gboolean is_entry_point = FALSE;
/* expand the path if it's an entry point */
/* Collapse everything else after loading an entry point. */
entry_points = gth_main_get_all_entry_points ();
for (scan = entry_points; scan; scan = scan->next) {
......@@ -1463,12 +1463,12 @@ load_data_continue (LoadData *load_data,
if (g_file_equal (file_data->file, load_data->requested_folder->file)) {
gth_folder_tree_collapse_all (GTH_FOLDER_TREE (browser->priv->folder_tree));
gtk_tree_view_expand_row (GTK_TREE_VIEW (browser->priv->folder_tree), path, FALSE);
is_entry_point = TRUE;
break;
}
}
gtk_tree_view_expand_row (GTK_TREE_VIEW (browser->priv->folder_tree), path, FALSE);
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (browser->priv->folder_tree),
path,
NULL,
......
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