Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaid <daid303@gmail.com>2013-10-14 14:26:43 +0400
committerdaid <daid303@gmail.com>2013-10-14 14:26:43 +0400
commit7376d494e56fbd25d76b32cdd5d87b9657d03604 (patch)
tree4c36c067dd8c462f7b7e653fa49f47ddd3137e72
parent5cbf5ee9a1b44f0719c2b9ef9cc51e41027a4a6c (diff)
Fixing problem for #282
-rw-r--r--Cura/gui/mainWindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py
index aea26ec0cb..75fd9dac6c 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..."))