From 29220ebe3d17c63eda83a40fcea08357e13fe544 Mon Sep 17 00:00:00 2001 From: oysteini Date: Tue, 11 May 2010 18:12:44 +0000 Subject: [PATCH] Resetter context-variabelen i begynnelsen av Menu.execute. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uten dette risikerer man å se informasjon fra forrige gang menyen var åpen når man sier 'what'. BuyMenu var rammet av dette problemet; kanskje andre menyer også. --- text_based.py | 1 + 1 file changed, 1 insertion(+) diff --git a/text_based.py b/text_based.py index ca6462b..10fef9b 100644 --- a/text_based.py +++ b/text_based.py @@ -225,6 +225,7 @@ product name or barcode. print self.help_text def execute(self): + self.set_context(None) try: return self._execute() except ExitMenu: