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 92f7a3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,8 @@ void uilist::query( bool loop, int timeout, bool allow_unfiltered_hotkeys )
}
} else if( allow_cancel && ret_act == "UILIST.QUIT" ) {

Check failure on line 1028 in src/ui.cpp

View workflow job for this annotation

GitHub Actions / build (src)

repeated branch body in conditional chain [bugprone-branch-clone,-warnings-as-errors]
ret = UILIST_CANCEL;
} else if( ret_act == "QUIT" ) {
ret = UILIST_CANCEL;
} else if( ret_act == "TIMEOUT" ) {
ret = UILIST_WAIT_INPUT;
} else {
Expand Down

0 comments on commit 92f7a3a

Please sign in to comment.