Author: andar

Revision: 5452

Log:
        Add / to the end of folder names when renaming

Diff:
Modified: trunk/deluge/ui/gtkui/addtorrentdialog.py
===================================================================
--- trunk/deluge/ui/gtkui/addtorrentdialog.py   2009-07-05 06:20:19 UTC (rev 
5451)
+++ trunk/deluge/ui/gtkui/addtorrentdialog.py   2009-07-05 16:19:47 UTC (rev 
5452)
@@ -884,9 +884,9 @@
                     # We don't iterate over the last item because we'll just 
use
                     # the existing itr and change the text
                     parent = self.files_treestore.append(parent,
-                                [True, s, 0, -1, False, gtk.STOCK_DIRECTORY])
+                                [True, s + "/", 0, -1, False, 
gtk.STOCK_DIRECTORY])
 
-                self.files_treestore[itr][1] = split_text[-1]
+                self.files_treestore[itr][1] = split_text[-1] + "/"
 
                 # Now reparent itr to parent
                 common.reparent_iter(self.files_treestore, itr, parent)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to