Skip to content

Commit

Permalink
ui: handle SIGINT in uilist too
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei8l committed Oct 20, 2024
1 parent 13fdc1e commit e436583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ void uilist::query( bool loop, int timeout, bool allow_unfiltered_hotkeys )
if( entries[ selected ].enabled || allow_disabled ) {
ret = entries[selected].retval;
}
} else if( allow_cancel && ret_act == "UILIST.QUIT" ) {
} else if( ( allow_cancel && ret_act == "UILIST.QUIT" ) ||
( g->uquit == QUIT_EXIT && ret_act == "QUIT" ) ) {
ret = UILIST_CANCEL;
} else if( ret_act == "TIMEOUT" ) {
ret = UILIST_WAIT_INPUT;
Expand Down

0 comments on commit e436583

Please sign in to comment.