From: daid Date: Mon, 23 Sep 2013 18:56:02 +0000 (+0200) Subject: Fix warning message on custom firmware. X-Git-Tag: 13.10~57 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=999bfc18ffa0d5277b53258850e45ba56b99f5bf;p=cura.git Fix warning message on custom firmware. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index f6260a94..7cc2dc2c 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -408,7 +408,7 @@ class mainWindow(wx.Frame): firmwareInstall.InstallFirmware() def OnCustomFirmware(self, e): - if profile.getPreference('machine_type').startswith('ultimaker'): + if profile.getMachineSetting('machine_type').startswith('ultimaker'): wx.MessageBox(_("Warning: Installing a custom firmware does not guarantee that you machine will function correctly, and could damage your machine."), _("Firmware update"), wx.OK | wx.ICON_EXCLAMATION) dlg=wx.FileDialog(self, _("Open firmware to upload"), os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST) dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX")