FIx an oopsie

This commit is contained in:
cncfanatics
2010-10-11 09:18:20 +02:00
parent 0362914b5b
commit 93a1c31292
3 changed files with 55 additions and 4 deletions

View File

@@ -47,11 +47,12 @@ class ContextMenu(object):
item = wx.MenuItem(menu, id, text)
menu.info[id] = (m, context, it)
bitmap = m.getBitmap(context, selection)
if bitmap:
item.SetBitmap(bitmap)
bitmap = m.getBitmap(context, selection)
if bitmap:
item.SetBitmap(bitmap)
menu.AppendItem(item)
menu.AppendItem(item)
empty = False
if amount > 0 and i != len(contexts) - 1: