[escher] Resolve bug: specify text field for controller with one only

text buffer

Change-Id: I371c37869e6e48b819cf4af70f7544e2844a3fee
This commit is contained in:
Émilie Feral
2017-03-29 18:25:27 +02:00
parent e95ea50d3c
commit 151423320e
6 changed files with 10 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ void EditExpressionController::setTextBody(const char * text) {
bool EditExpressionController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::Up) {
if (m_calculationStore->numberOfCalculations() > 0) {
m_contentView.textField()->setEditing(false);
m_contentView.textField()->setEditing(false, false);
app()->setFirstResponder(m_historyController);
}
return true;