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
|
else
|
||||||
setIndex(index);
|
setIndex(index);
|
||||||
} else {
|
} else {
|
||||||
setIndex(index);
|
// delete menu first to avoid
|
||||||
lines[index].onPress();
|
// focus issues with onPress()
|
||||||
menu->deleteLater();
|
menu->deleteLater();
|
||||||
|
lines[index].onPress();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user