diff options
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r-- | shell/e-storage-set-view.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 9218b184a7..73c73f940f 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -397,7 +397,7 @@ find_matching_target_for_drag_context (EStorageSetView *storage_set_view, folder = get_folder_at_node (storage_set_view, path); if (folder == NULL) - return NULL; + return EVOLUTION_PATH_TARGET_TYPE; accepted_types = e_folder_type_registry_get_accepted_dnd_types_for_type (folder_type_registry, e_folder_get_type_string (folder)); @@ -1061,10 +1061,6 @@ tree_drag_motion (ETree *tree, path = e_tree_node_at_row (E_TREE (storage_set_view), row); - component_client = get_component_at_node (storage_set_view, path); - if (component_client == NULL) - return FALSE; - dnd_type = find_matching_target_for_drag_context (storage_set_view, path, context); if (dnd_type == NULL) return FALSE; @@ -1072,6 +1068,10 @@ tree_drag_motion (ETree *tree, if (strcmp (dnd_type, EVOLUTION_PATH_TARGET_TYPE) == 0) return handle_evolution_path_drag_motion (storage_set_view, path, row, context, time); + component_client = get_component_at_node (storage_set_view, path); + if (component_client == NULL) + return FALSE; + destination_folder_interface = evolution_shell_component_client_get_dnd_destination_interface (component_client); if (destination_folder_interface == NULL) return FALSE; |