1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

Handles premature exit (no pun intended) (#4762)

This commit is contained in:
3djc 2017-04-08 10:32:59 +02:00 committed by Bertrand Songis
parent 116d24ec37
commit 76f3edb50d
3 changed files with 21 additions and 3 deletions

View file

@ -911,8 +911,14 @@ void menuModelSetup(event_t event)
POPUP_MENU_START(onBindMenu);
continue;
}
if (moduleFlag[INTERNAL_MODULE] == MODULE_BIND)
if (moduleFlag[INTERNAL_MODULE] == MODULE_BIND) {
newFlag = MODULE_BIND;
}
else {
if (!popupMenuNoItems) {
s_editMode=0; // this is when popup is exited before a choice is made
}
}
}
else {
newFlag = MODULE_BIND;