aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 6ced34a5db..748127ce4c 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -478,20 +478,22 @@ transfer_msg (GtkWidget *widget, gpointer user_data, gboolean delete_from_source
extern EvolutionShellClient *global_shell_client;
static char *last = NULL;
+ if (last == NULL)
+ last = g_strdup ("");
if (delete_from_source)
desc = _("Move message(s) to");
else
desc = _("Copy message(s) to");
- evolution_shell_client_user_select_folder (global_shell_client,
- desc, /* last ? last : */ "",
- allowed_types, &uri, &physical);
+ evolution_shell_client_user_select_folder (global_shell_client,
+ desc,
+ last, allowed_types, &uri, &physical);
if (!uri)
return;
path = strchr (uri, '/');
- if (!last || (last && path && strcmp (last, path))) {
+ if (path && strcmp (last, path) != 0) {
g_free (last);
last = g_strdup (path);
}