This commit is contained in:
John 2015-07-25 18:19:45 +03:00
parent 1c10218bb2
commit 95649ed20a

View file

@ -379,9 +379,7 @@ class InventoryNew(InventoryBase.InventoryBase, DirectFrame):
self.enableUberGags() self.enableUberGags()
def deactivateButtons(self): def deactivateButtons(self):
if self.previousActivateMode == 'book': if self.previousActivateMode == 'purchaseDelete':
self.bookDeactivateButtons()
elif self.previousActivateMode == 'purchaseDelete':
self.purchaseDeleteDeactivateButtons() self.purchaseDeleteDeactivateButtons()
elif self.previousActivateMode == 'purchase': elif self.previousActivateMode == 'purchase':
self.purchaseDeactivateButtons() self.purchaseDeactivateButtons()
@ -399,9 +397,6 @@ class InventoryNew(InventoryBase.InventoryBase, DirectFrame):
self.storePurchaseBrokeDeactivateButtons() self.storePurchaseBrokeDeactivateButtons()
elif self.previousActivateMode == 'plantTree': elif self.previousActivateMode == 'plantTree':
self.plantTreeDeactivateButtons() self.plantTreeDeactivateButtons()
else:
self.notify.error('No such mode as %s' % self.previousActivateMode)
return None
def __activateButtons(self): def __activateButtons(self):
if hasattr(self, 'activateMode'): if hasattr(self, 'activateMode'):
@ -455,9 +450,6 @@ class InventoryNew(InventoryBase.InventoryBase, DirectFrame):
else: else:
self.hideTrack(track) self.hideTrack(track)
def bookDeactivateButtons(self):
self.deleteEnterButton['command'] = None
def updateDeleteButtons(self): def updateDeleteButtons(self):
for track in xrange(len(Tracks)): for track in xrange(len(Tracks)):
if self.toon.hasTrackAccess(track): if self.toon.hasTrackAccess(track):