aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index 8ae2fd3b..90086103 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -720,9 +720,6 @@ info_tree_compare_val_func(GtkTreeModel * model,
static void set_view_type(ShellViewType viewtype)
{
- if (viewtype == shell->view_type)
- return;
-
if (viewtype < SHELL_VIEW_NORMAL || viewtype >= SHELL_VIEW_N_VIEWS)
viewtype = SHELL_VIEW_NORMAL;
@@ -745,7 +742,6 @@ static void set_view_type(ShellViewType viewtype)
/* turn off the save graphic action */
shell_action_set_enabled("SaveGraphAction", FALSE);
-
switch (viewtype) {
default:
case SHELL_VIEW_NORMAL: