From dcf0124ea3a61e9235329dbecce92774224e54f8 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Thu, 24 Nov 2011 16:25:26 -0800 Subject: Make sure note (usually used by the benchmark module) is closed when swapping view mode --- shell/shell.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell/shell.c') diff --git a/shell/shell.c b/shell/shell.c index f0c87205..913a7084 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -1016,6 +1016,8 @@ static void set_view_type(ShellViewType viewtype, gboolean reload) /* turn off the save graphic action */ shell_action_set_enabled("SaveGraphAction", FALSE); + close_note(NULL, NULL); + switch (viewtype) { default: case SHELL_VIEW_NORMAL: -- cgit v1.2.3