Module: deluge Branch: master Commit: efe2c063471205c663b6ee17a93790f6b451a6f2
Author: Chase Sterling <[email protected]> Date: Thu Mar 25 17:41:15 2010 -0400 remove some useless code --- deluge/plugins/autoadd/autoadd/gtkui.py | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/deluge/plugins/autoadd/autoadd/gtkui.py b/deluge/plugins/autoadd/autoadd/gtkui.py index 3ade886..4541998 100644 --- a/deluge/plugins/autoadd/autoadd/gtkui.py +++ b/deluge/plugins/autoadd/autoadd/gtkui.py @@ -332,10 +332,7 @@ class GtkUI(GtkPluginBase): self.store.clear() for watchdir_id, watchdir in self.watchdirs.iteritems(): self.store.append([watchdir_id, watchdir['enabled'], watchdir['path']]) - if False: #self.watchdirs: - self.glade.get_widget('remove_button').set_sensitive(True) - self.glade.get_widget('edit_button').set_sensitive(True) - else: - self.glade.get_widget('remove_button').set_sensitive(False) - self.glade.get_widget('edit_button').set_sensitive(False) + # Disable the remove and edit buttons, because nothing in the store is selected + self.glade.get_widget('remove_button').set_sensitive(False) + self.glade.get_widget('edit_button').set_sensitive(False) -- 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.
