Index: deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- deluge/ui/gtkui/addtorrentdialog.py	(revision 6169)
+++ deluge/ui/gtkui/addtorrentdialog.py	(working copy)
@@ -836,16 +836,14 @@
 
                     index = self.files_treestore[row][3]
 
-                    # Don't do anything if this is a folder
-                    if index == -1:
-                        return
+                    # Process only files
+                    if index > -1:
+                        # Get the new full path for this file
+                        file_path = file_path_base + self.files_treestore[row][1]
+    
+                        # Update the file path in the mapped_files dict
+                        self.options[torrent_id]["mapped_files"][index] = file_path
 
-                    # Get the new full path for this file
-                    file_path = file_path_base + self.files_treestore[row][1]
-
-                    # Update the file path in the mapped_files dict
-                    self.options[torrent_id]["mapped_files"][index] = file_path
-
                     # Get the next siblings iter
                     row = self.files_treestore.iter_next(row)
 
