From 2d93a52ec934675dc6c984496988831c1d160331 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 13 Jun 2008 06:27:52 +0000 Subject: ** Fix for bug #538002 2008-06-13 Milan Crha ** Fix for bug #538002 * em-folder-tree.c: (emft_drop_target): Do not allow dropping messages on folders with CAMEL_FOLDER_NOSELECT flag set. svn path=/trunk/; revision=35631 --- mail/em-folder-tree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mail/em-folder-tree.c') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 332c3e8cce..a2d4b68cf4 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -1100,6 +1100,7 @@ emft_drop_target(EMFolderTree *emft, GdkDragContext *context, GtkTreePath *path) gboolean is_store; GtkTreeIter iter; GList *targets; + guint32 flags = 0; /* This is a bit of a mess, but should handle all the cases properly */ @@ -1108,6 +1109,7 @@ emft_drop_target(EMFolderTree *emft, GdkDragContext *context, GtkTreePath *path) gtk_tree_model_get((GtkTreeModel *)p->model, &iter, COL_BOOL_IS_STORE, &is_store, COL_STRING_FULL_NAME, &full_name, + COL_UINT_FLAGS, &flags, COL_POINTER_CAMEL_STORE, &dstore, COL_STRING_URI, &uri, -1); @@ -1144,6 +1146,9 @@ emft_drop_target(EMFolderTree *emft, GdkDragContext *context, GtkTreePath *path) if (!strcmp (full_name, CAMEL_VTRASH_NAME) || !strcmp (full_name, CAMEL_VJUNK_NAME)) goto done; + + if (flags & CAMEL_FOLDER_NOSELECT) + goto done; } if (p->drag_row) { -- cgit