diff -urN thunar-orig/thunar/thunar-standard-view.c thunar/thunar/thunar-standard-view.c --- thunar-orig/thunar/thunar-standard-view.c 2012-05-03 16:40:08.679495118 +0100 +++ thunar/thunar/thunar-standard-view.c 2012-05-03 16:43:36.369496226 +0100 @@ -48,6 +48,8 @@ #include #include #include +#include +#include #include #include #include @@ -3075,8 +3077,13 @@ /* Get tree paths of selected files */ selected_items = (*THUNAR_STANDARD_VIEW_GET_CLASS (standard_view)->get_selected_items) (standard_view); - /* Do nothing if the deleted row is not selected or there is more than one file selected */ - if (G_UNLIKELY (g_list_find_custom (selected_items, path, (GCompareFunc) gtk_tree_path_compare) == NULL || g_list_length (selected_items) != 1)) + /* Do nothing if the deleted row is not selected, if there is more than one file + * selected or if we are in single-click mode + */ + if (G_UNLIKELY (g_list_find_custom (selected_items, path, (GCompareFunc) gtk_tree_path_compare) == NULL + || g_list_length (selected_items) != 1 + || (THUNAR_IS_ABSTRACT_ICON_VIEW (standard_view) + && exo_icon_view_get_single_click (EXO_ICON_VIEW (GTK_BIN (standard_view)->child)) ))) { g_list_foreach (selected_items, (GFunc) gtk_tree_path_free, NULL); g_list_free (selected_items);