aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2011-11-24 16:25:26 -0800
committerLeandro Pereira <leandro@hardinfo.org>2011-11-24 16:25:26 -0800
commitdcf0124ea3a61e9235329dbecce92774224e54f8 (patch)
treeff08e74ad0874a2920e26802be5673a192ab5f2d
parentf28dbb3158054925808f4bdadd608794a44eb692 (diff)
Make sure note (usually used by the benchmark module) is closed when swapping view mode
-rw-r--r--shell/shell.c2
1 files changed, 2 insertions, 0 deletions
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: