aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-folder-commands.c')
-rw-r--r--shell/e-shell-folder-commands.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/e-shell-folder-commands.c b/shell/e-shell-folder-commands.c
index 5eed7fcc3e..afc775a5ab 100644
--- a/shell/e-shell-folder-commands.c
+++ b/shell/e-shell-folder-commands.c
@@ -565,6 +565,8 @@ e_shell_command_add_to_shortcut_bar (EShell *shell,
EShellView *shell_view)
{
EShortcuts *shortcuts;
+ EStorageSet *storage_set;
+ EFolder *folder;
int group_num;
const char *uri;
int unread_count;
@@ -580,5 +582,8 @@ e_shell_command_add_to_shortcut_bar (EShell *shell,
unread_count = get_folder_unread (shell, e_shell_view_get_current_path (shell_view));
- e_shortcuts_add_shortcut (shortcuts, group_num, -1, uri, NULL, unread_count, NULL);
+ storage_set = e_shell_get_storage_set (shell);
+ folder = e_storage_set_get_folder (storage_set, e_shell_view_get_current_path (shell_view));
+
+ e_shortcuts_add_shortcut (shortcuts, group_num, -1, uri, NULL, unread_count, e_folder_get_type_string (folder));
}