Skip to content
Permalink
Browse files

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).
  • Loading branch information...
lpereira committed Aug 5, 2019
1 parent 3c83737 commit cb3c130d2d679f0c68ad7f846cfc2d31e9690dac
Showing with 1 addition and 0 deletions.
  1. +1 −0 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:

0 comments on commit cb3c130

Please sign in to comment.
You can’t perform that action at this time.