aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 4a01f70238..ad302c0d5f 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -569,9 +569,10 @@ set_e_shortcut_selection (EStorageSetView *storage_set_view,
GtkSelectionData *selection_data)
{
EStorageSetViewPrivate *priv;
+ ETreePath node;
+ EFolder *folder;
int shortcut_len;
char *shortcut;
- const char *trailing_slash;
const char *name;
g_assert (storage_set_view != NULL);
@@ -579,11 +580,9 @@ set_e_shortcut_selection (EStorageSetView *storage_set_view,
priv = storage_set_view->priv;
- trailing_slash = strrchr (priv->selected_row_path, '/');
- if (trailing_slash == NULL)
- name = NULL;
- else
- name = trailing_slash + 1;
+ node = lookup_node_in_hash (storage_set_view, priv->selected_row_path);
+ folder = get_folder_at_node (storage_set_view, node);
+ name = e_folder_get_name (folder);
/* FIXME: Get `evolution:' from somewhere instead of hardcoding it here. */