From: Youness Alaoui Date: Mon, 10 Aug 2015 19:32:48 +0000 (-0400) Subject: Escape ampersand so it appears in quickprint profiles X-Git-Tag: lulzbot-15.02.1-2.01~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3c11596955530c4e67aa4a867d59cb89c0579874;p=cura.git Escape ampersand so it appears in quickprint profiles --- diff --git a/Cura/gui/simpleMode.py b/Cura/gui/simpleMode.py index 9b35a7b9..7142ab3e 100644 --- a/Cura/gui/simpleMode.py +++ b/Cura/gui/simpleMode.py @@ -25,7 +25,7 @@ class simpleModePanel(wx.Panel): for material in materials: if material.disabled: continue - button = wx.RadioButton(self.printMaterialPanel, -1, material.name, + button = wx.RadioButton(self.printMaterialPanel, -1, material.name.replace('&', '&&'), style=wx.RB_GROUP if len(self._print_material_options) == 0 else 0) button.profile = material self._print_material_options.append(button) @@ -99,7 +99,7 @@ class simpleModePanel(wx.Panel): for print_profile in material.profiles: if print_profile.disabled: continue - button = wx.RadioButton(self.printTypePanel, -1, print_profile.name, + button = wx.RadioButton(self.printTypePanel, -1, print_profile.name.replace('&', '&&'), style=wx.RB_GROUP if len(self._print_profile_options) == 0 else 0) button.profile = print_profile self._print_profile_options.append(button) @@ -147,7 +147,7 @@ class simpleModePanel(wx.Panel): for option in material.options: if option.disabled: continue - button = wx.CheckBox(self, -1, option.name) + button = wx.CheckBox(self, -1, option.name.replace('&', '&&')) button.profile = option self._print_other_options.append(button) # Restore selection on similarly named options