[shared] ScrollableExactApproximateExpressionsView: change the selected

output only when one of the two layout is uninitialized. Otherwise, the
parent cell decides of which of right or left output should be selected.
This commit is contained in:
Émilie Feral
2019-04-23 11:15:17 +02:00
parent a3f669fb08
commit 06a8382ff4
3 changed files with 11 additions and 1 deletions

View File

@@ -126,7 +126,8 @@ void ScrollableExactApproximateExpressionsView::setEqualMessage(I18n::Message eq
void ScrollableExactApproximateExpressionsView::didBecomeFirstResponder() {
if (m_contentCell.leftExpressionView()->layout().isUninitialized()) {
setSelectedSubviewPosition(SubviewPosition::Right);
} else {
}
if (m_contentCell.rightExpressionView()->layout().isUninitialized()) {
setSelectedSubviewPosition(SubviewPosition::Left);
}
}