Commits

Seth ProductEngine  committed 0953f5d

EXP-1335 FIXED empty folders not draggable between Inventory windows.
Added filtering empty folders as any other folder view item.
This enables dragging empty folders between Inventory floaters when they pass the filter.

  • Participants
  • Parent commits 9635de0

Comments (0)

Files changed (1)

File indra/newview/llinventorybridge.cpp

 	S32 num_descendent_categories = descendent_categories.count();
 	S32 num_descendent_items = descendent_items.count();
 
-	if (num_descendent_categories + num_descendent_items == 0
-		&& filter->getShowFolderState() != LLInventoryFilter::SHOW_ALL_FOLDERS)
-	{
-		// Empty folders are not allowed if we are not showing all folders
-		return false;
+	if (num_descendent_categories + num_descendent_items == 0)
+	{
+		// Empty folder should be checked as any other folder view item.
+		// If we are filtering by date the folder should not pass because
+		// it doesn't have its own creation date. See LLInvFVBridge::getCreationDate().
+		return check_item(cat_id, active_folder_view, filter);
 	}
 
 	for (S32 i = 0; i < num_descendent_categories; ++i)