aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selection-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-selection-button.c')
-rw-r--r--mail/em-folder-selection-button.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c
index a31569fd33..5187e8d324 100644
--- a/mail/em-folder-selection-button.c
+++ b/mail/em-folder-selection-button.c
@@ -120,7 +120,7 @@ static void
set_contents (EMFolderSelectionButton *button)
{
struct _EMFolderSelectionButtonPrivate *priv = button->priv;
- const char *path;
+ const char *folder_name;
CamelURL *url;
if (priv->uri == NULL
@@ -129,15 +129,15 @@ set_contents (EMFolderSelectionButton *button)
return;
}
- path = url->fragment ? url->fragment : url->path;
+ folder_name = url->fragment ? url->fragment : url->path + 1;
- if (path == NULL) {
+ if (folder_name == NULL) {
camel_url_free (url);
set_contents_unselected (button);
return;
}
- gtk_label_set_text (GTK_LABEL (priv->label), path);
+ gtk_label_set_text (GTK_LABEL (priv->label), folder_name);
camel_url_free (url);
}