Fix some errors showing '&' char for the mnemonic text

This commit is contained in:
David Capello 2017-03-08 19:15:34 -03:00
parent 94dcfa7f35
commit 0742dfad17
3 changed files with 8 additions and 4 deletions

View File

@ -336,7 +336,7 @@ brush_preview = Brush Preview:
brush_preview_none = None
brush_preview_edges = Brush Edges
brush_preview_full = Full Real-time Brush Preview
cursor_color_type = Crosshair & Brush Edges Color:
cursor_color_type = Crosshair && Brush Edges Color:
cursor_neg_bw = Negative Black and White
cursor_specific_color = Specific Color
bg_checked = Checked Background

View File

@ -39,6 +39,12 @@ FilterWindow::FilterWindow(const char* title, const char* cfgSection,
, m_showPreview("&Preview")
, m_tiledCheck(withTiled == WithTiledCheckBox ? new CheckBox("&Tiled") : NULL)
{
m_okButton.processMnemonicFromText();
m_cancelButton.processMnemonicFromText();
m_showPreview.processMnemonicFromText();
if (m_tiledCheck)
m_tiledCheck->processMnemonicFromText();
m_targetButton.setTarget(filterMgr->getTarget());
m_targetButton.TargetChange.connect(&FilterWindow::onTargetButtonChange, this);
m_okButton.Click.connect(&FilterWindow::onOk, this);

View File

@ -59,10 +59,8 @@ Console::Console(Context* ctx)
TextBox* textbox = new TextBox("", WORDWRAP);
Button* button = new Button("&Cancel");
if (!grid || !textbox || !button)
return;
// The "button" closes the console
button->processMnemonicFromText();
button->Click.connect(base::Bind<void>(&Window::closeWindow, window, button));
view->attachToView(textbox);