From efe2c063471205c663b6ee17a93790f6b451a6f2 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Thu, 25 Mar 2010 17:41:15 -0400 Subject: [PATCH] remove some useless code --- deluge/plugins/autoadd/autoadd/gtkui.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/deluge/plugins/autoadd/autoadd/gtkui.py b/deluge/plugins/autoadd/autoadd/gtkui.py index 3ade886c8..4541998f3 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)