cf1c31c
Index: lib/alexandria/ui/ui_manager.rb
cf1c31c
===================================================================
cf1c31c
--- lib/alexandria/ui/ui_manager.rb	(revision 1064)
cf1c31c
+++ lib/alexandria/ui/ui_manager.rb	(revision 1065)
cf1c31c
@@ -918,10 +918,13 @@
cf1c31c
         selection = page == 0 ? @iconview : @listview.selection
cf1c31c
 
cf1c31c
         selection.selected_each do |the_view, path|
cf1c31c
-          unless the_view.model
cf1c31c
+          # don't use the_view which is passed in by this block
cf1c31c
+          # as it doesn't consider the filtering for some reason
cf1c31c
+          # see bug #24568
cf1c31c
+          unless view.model
cf1c31c
             next
cf1c31c
           end
cf1c31c
-          path = the_view.model.convert_path_to_child_path(path)
cf1c31c
+          path = view.model.convert_path_to_child_path(path)
cf1c31c
           if path
cf1c31c
             path = @filtered_model.convert_path_to_child_path(path)
cf1c31c
             # FIX this sometimes returns a nil path for iconview...