Skip to content

Commit 4763175

Browse files
committed
kconfig: gconf: update pane correctly after loading a config file
Every time a config file is loaded (either by clicking the "Load" button or selecting "File" -> "Load" from the menu), a new list is appended to the pane. The current tree needs to be cleared by calling gtk_tree_store_clear(). Signed-off-by: Masahiro Yamada <[email protected]>
1 parent a0b49a9 commit 4763175

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/kconfig/gconf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ load_filename(GtkFileSelection * file_selector, gpointer user_data)
487487
if (conf_read(fn))
488488
text_insert_msg("Error", "Unable to load configuration !");
489489
else
490-
display_tree(&rootmenu);
490+
display_tree_part();
491491
}
492492

493493
void on_load1_activate(GtkMenuItem * menuitem, gpointer user_data)
@@ -1399,6 +1399,8 @@ static void display_tree_part(void)
13991399
display_tree(current);
14001400
else if (view_mode == SPLIT_VIEW)
14011401
display_tree(browsed);
1402+
else if (view_mode == FULL_VIEW)
1403+
display_tree(&rootmenu);
14021404
gtk_tree_view_expand_all(GTK_TREE_VIEW(tree2_w));
14031405
}
14041406

0 commit comments

Comments
 (0)