diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2010-01-03 15:49:57 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2010-01-03 15:49:57 -0200 |
commit | c8bc96a5431c1435be52a268d5a14c13ef90006d (patch) | |
tree | bc13d1da72fe0c068104b1feebafa52549761110 /hardinfo2 | |
parent | c2712fe404298f7af8a65a336443ac8317ca930c (diff) |
Fix a bug introduced with context help: the shell was left in a inconsistent state when changing between module entries.
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/shell.c | 4 |
1 files 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"); } |