menu: onPress() must be executed after menu is removed
This commit is contained in:
committed by
Raphael Coeffic
parent
2eef7755a5
commit
f8612a0dbe
+3
-2
@@ -109,9 +109,10 @@ void MenuBody::onPress(size_t index)
|
||||
else
|
||||
setIndex(index);
|
||||
} else {
|
||||
setIndex(index);
|
||||
lines[index].onPress();
|
||||
// delete menu first to avoid
|
||||
// focus issues with onPress()
|
||||
menu->deleteLater();
|
||||
lines[index].onPress();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user