diff options
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 7800da1eef..00732ef635 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -198,39 +198,11 @@ sort_cb (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data if (!strcmp (bname, _("VFolders"))) return -1; } else if (store == vfolder_store) { - /* perform no sorting, we want to display in the same - * order as they appear in the VFolder editor - UNMATCHED is always last */ - GtkTreePath *path; - int ret; - + /* UNMATCHED is always last */ if (aname && !strcmp (aname, _("UNMATCHED"))) return 1; if (bname && !strcmp (bname, _("UNMATCHED"))) return -1; - - path = gtk_tree_model_get_path (model, a); - if (path) { - aname = gtk_tree_path_to_string (path); - gtk_tree_path_free (path); - } else { - return 1; - } - - path = gtk_tree_model_get_path (model, b); - if (path) { - bname = gtk_tree_path_to_string (path); - gtk_tree_path_free (path); - } else { - g_free(aname); - return -1; - } - - ret = strcmp (aname, bname); - - g_free (aname); - g_free (bname); - - return ret; } else { /* Inbox is always first */ if (aname && (!strcmp (aname, "INBOX") || !strcmp (aname, _("Inbox")))) |