From 7376d494e56fbd25d76b32cdd5d87b9657d03604 Mon Sep 17 00:00:00 2001 From: daid Date: Mon, 14 Oct 2013 12:26:43 +0200 Subject: [PATCH] Fixing problem for #282 --- Cura/gui/mainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index aea26ec0..75fd9dac 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -385,10 +385,10 @@ class mainWindow(wx.Frame): #Add a menu item for each machine configuration. for n in xrange(0, profile.getMachineCount()): - i = self.machineMenu.Append(n, profile.getMachineSetting('machine_name', n).title(), kind=wx.ITEM_RADIO) + i = self.machineMenu.Append(n + 0x1000, profile.getMachineSetting('machine_name', n).title(), kind=wx.ITEM_RADIO) if n == int(profile.getPreferenceFloat('active_machine')): i.Check(True) - self.Bind(wx.EVT_MENU, lambda e: self.OnSelectMachine(e.GetId()), i) + self.Bind(wx.EVT_MENU, lambda e: self.OnSelectMachine(e.GetId() - 0x1000), i) self.machineMenu.AppendSeparator() i = self.machineMenu.Append(-1, _("Add new machine...")) -- 2.30.2