diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index 7cf634a23877e20cf51ee9ecfd01920e25840bd6..9967b0905011babda794bd209f156fd2420a23d8 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -837,7 +837,6 @@ thunar_details_view_row_activated (GtkTreeView       *tree_view,
                                    GtkTreeViewColumn *column,
                                    ThunarDetailsView *details_view)
 {
-  GtkTreeSelection *selection;
   GtkAction        *action;
 
   _thunar_return_if_fail (THUNAR_IS_DETAILS_VIEW (details_view));