From 92f7a3a46f0ca7d41cdeb52e77b9106927bb2da0 Mon Sep 17 00:00:00 2001 From: andrei Date: Sun, 20 Oct 2024 11:35:56 +0300 Subject: [PATCH] ui: handle SIGINT in uilist too --- src/ui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui.cpp b/src/ui.cpp index 315f2d1c952ff..0e6aeac2158b5 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -1027,6 +1027,8 @@ void uilist::query( bool loop, int timeout, bool allow_unfiltered_hotkeys ) } } else if( allow_cancel && ret_act == "UILIST.QUIT" ) { ret = UILIST_CANCEL; + } else if( ret_act == "QUIT" ) { + ret = UILIST_CANCEL; } else if( ret_act == "TIMEOUT" ) { ret = UILIST_WAIT_INPUT; } else {