aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-08-04 20:03:24 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-08-10 16:50:18 -0700
commitcb3c130d2d679f0c68ad7f846cfc2d31e9690dac (patch)
tree844680f8bad82df148da1dad101b46ff8b96c6a6 /shell
parent3c83737fa488281f20030b5b36d7e1d4ba4313c9 (diff)
Clear detail view when switching view types
This avoids the detail view to be populated should the new view type be empty (e.g. no printers set up in the machine).
Diffstat (limited to 'shell')
-rw-r--r--shell/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c
index 106f6722..5e13bde6 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -1049,6 +1049,7 @@ static void set_view_type(ShellViewType viewtype, gboolean reload)
#endif
close_note(NULL, NULL);
+ detail_view_clear(shell->detail_view);
switch (viewtype) {
default: