Skip to content

Commit c55c9d5

Browse files
committed
kconfig: delay gconf window initialization
Delay the window initialization to let the rootmenu's prompt be initialized as it will be used to get the window's title. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
1 parent f6ce00b commit c55c9d5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎scripts/kconfig/gconf.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,12 +1530,6 @@ int main(int ac, char *av[])
15301530
else
15311531
glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL);
15321532

1533-
/* Load the interface and connect signals */
1534-
init_main_window(glade_file);
1535-
init_tree_model();
1536-
init_left_tree();
1537-
init_right_tree();
1538-
15391533
/* Conf stuffs */
15401534
if (ac > 1 && av[1][0] == '-') {
15411535
switch (av[1][1]) {
@@ -1555,6 +1549,12 @@ int main(int ac, char *av[])
15551549
fixup_rootmenu(&rootmenu);
15561550
conf_read(NULL);
15571551

1552+
/* Load the interface and connect signals */
1553+
init_main_window(glade_file);
1554+
init_tree_model();
1555+
init_left_tree();
1556+
init_right_tree();
1557+
15581558
switch (view_mode) {
15591559
case SINGLE_VIEW:
15601560
display_tree_part();

0 commit comments

Comments
 (0)