Fix menubar component stopping properly

This commit is contained in:
Andrew Resch 2011-06-02 11:54:53 -07:00
parent 1557d0da1f
commit 6d55c44983
1 changed files with 0 additions and 3 deletions

View File

@ -213,9 +213,6 @@ class MenuBar(component.Component):
def stop(self): def stop(self):
log.debug("MenuBar stopping") log.debug("MenuBar stopping")
if client.get_auth_level() == deluge.common.AUTH_LEVEL_ADMIN:
# If not an admin, no submenu was added
self.menuitem_change_owner.remove_submenu()
for widget in self.change_sensitivity: for widget in self.change_sensitivity:
self.window.main_glade.get_widget(widget).set_sensitive(False) self.window.main_glade.get_widget(widget).set_sensitive(False)