aboutsummaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorbp0 <pburt0@gmail.com>2017-07-24 20:06:22 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-07-24 18:06:22 -0700
commitf3574dd0ce47235121fe5da8cfdc20a6e451f361 (patch)
treef7ad2e7449d97c9ecb775efd0ce14cd84a937972 /shell/shell.c
parent590cb7c3de5664ad424a94d361be6db02f0329cd (diff)
Reset sort order on set_view_type() (#111)
* Reset sort order on set_view_type() Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c
index 153b00b3..62719d78 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -897,6 +897,7 @@ static void set_view_type(ShellViewType viewtype, gboolean reload)
shell->normalize_percentage = TRUE;
shell->view_type = viewtype;
+ shell->_order_type = SHELL_ORDER_DESCENDING;
/* use an unsorted tree model */
GtkTreeSortable *sortable = GTK_TREE_SORTABLE(shell->info->model);