mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 19:49:58 +02:00
[apps] Fixed bug in MathToolbox.
When returning a MathToolbox, the textfield delegate did not set the toolbox action for textfields. Change-Id: I51f78ff5601f784be8e283cf3fb6d3462b776d9a
This commit is contained in:
@@ -107,7 +107,7 @@ const ToolboxMessageTree toolboxModel = ToolboxMessageTree(I18n::Message::Toolbo
|
||||
|
||||
MathToolbox::MathToolbox() :
|
||||
Toolbox(nullptr, I18n::translate(rootModel()->label())),
|
||||
m_action(actionForTextfield)
|
||||
m_action(actionForTextField)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ void MathToolbox::actionForEditableExpressionView(void * sender, ToolboxMessageT
|
||||
expressionLayoutEditorSender->insertLayoutAtCursor(resultLayout, pointedLayout);
|
||||
}
|
||||
|
||||
void MathToolbox::actionForTextfield(void * sender, ToolboxMessageTree * messageTree) {
|
||||
void MathToolbox::actionForTextField(void * sender, ToolboxMessageTree * messageTree) {
|
||||
TextField * textFieldSender = static_cast<TextField *>(sender);
|
||||
if (!textFieldSender->isEditing()) {
|
||||
textFieldSender->setEditing(true);
|
||||
|
||||
Reference in New Issue
Block a user