Skip to content

Commit 781f6d9

Browse files
authored
fix(color): radio may crash when using key shortcuts (#6832)
1 parent 851475b commit 781f6d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

radio/src/gui/colorlcd/setup_menus/quick_menu.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,15 @@ void QuickMenu::onSelect(bool close)
509509
{
510510
closeMenu();
511511
if (selectHandler) selectHandler(close);
512+
selectHandler = nullptr;
512513
}
513514

514515
void QuickMenu::closeMenu()
515516
{
516517
Layer::pop(this);
517518
hide();
518519
if (cancelHandler) cancelHandler();
520+
cancelHandler = nullptr;
519521
}
520522

521523
void QuickMenu::onCancel()

0 commit comments

Comments
 (0)