Changeset 588


Ignore:
Timestamp:
07/11/10 18:16:40 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • Now using deepcopy to copy the actions dictionary of the item in showContextMenu of ContainerGuiBase?. This fixes the bug that the look action can only be used once.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/gui/containergui_base.py

    r584 r588  
    1919from scripts.gui import drag_drop_data as data_drag 
    2020from scripts.objects.action import ACTIONS 
     21from copy import deepcopy 
    2122 
    2223class ContainerGUIBase(object): 
     
    101102            item = widget.item 
    102103            if item and item.trueAttr("usable"): 
    103                 actions = item.actions 
     104                actions = deepcopy(item.actions) 
    104105                if not actions: 
    105106                    return 
Note: See TracChangeset for help on using the changeset viewer.