Author: damoxc
Revision: 5235
Log:
remove pointless if
Diff:
Modified: trunk/deluge/ui/gtkui/edittrackersdialog.py
===================================================================
--- trunk/deluge/ui/gtkui/edittrackersdialog.py 2009-05-05 22:33:17 UTC (rev
5234)
+++ trunk/deluge/ui/gtkui/edittrackersdialog.py 2009-05-05 22:35:25 UTC (rev
5235)
@@ -193,14 +193,13 @@
# Check if there are any entries
duplicate = False
highest_tier = -1
- if self.liststore.iter_n_children(None) > 0:
- for row in self.liststore:
- tier = row[0]
- if tier > highest_tier:
- highest_tier = tier
- if tracker == row[1]:
- duplicate = True
- break
+ for row in self.liststore:
+ tier = row[0]
+ if tier > highest_tier:
+ highest_tier = tier
+ if tracker == row[1]:
+ duplicate = True
+ break
# If not a duplicate, then add it to the list
if not duplicate:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---