From c8bc96a5431c1435be52a268d5a14c13ef90006d Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 3 Jan 2010 15:49:57 -0200 Subject: Fix a bug introduced with context help: the shell was left in a inconsistent state when changing between module entries. --- hardinfo2/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index d7d4476f..104c99a6 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1517,7 +1517,8 @@ static void module_selected(gpointer data) g_free(temp); } else { - goto no_help; + shell_action_set_enabled("ContextHelpAction", FALSE); + shell_action_set_label("ContextHelpAction", "Context help"); } shell_action_set_enabled("RefreshAction", TRUE); @@ -1533,7 +1534,6 @@ static void module_selected(gpointer data) gtk_tree_store_clear(GTK_TREE_STORE(shell->info->model)); set_view_type(SHELL_VIEW_NORMAL, FALSE); -no_help: shell_action_set_enabled("ContextHelpAction", FALSE); shell_action_set_label("ContextHelpAction", "Context help"); } -- cgit v1.2.3