fix #4005 - paranoid_confirm:Autoall
When paranoid confirmation for menustyle:full's "Autoselect all" is enabled, it is handling yes vs no backwards. The initial implementation had it right, then a negation got dropped when it was expanded to support yes|no via paranoid_confirm:Confirm. ESC is being treated as 'n' rather than as cancel. Fixing that will take some more work. This just adds the missing negation to make 'y' and 'n' behave properly.
This commit is contained in:
@@ -1364,8 +1364,8 @@ query_category(
|
||||
/* ParanoidAutoAll is set (otherwise verify_All is false);
|
||||
if ParanoidConfirm is also set, require "yes" rather than
|
||||
just "y" to accept (and "no" rather than "n" to decline) */
|
||||
if (paranoid_query(ParanoidConfirm,
|
||||
"Really autoselect All?")) {
|
||||
if (!paranoid_query(ParanoidConfirm,
|
||||
"Really autoselect All?")) {
|
||||
/* answer is "no", so take 'A' out of the list;
|
||||
if it is the only entry, we'll return nothing,
|
||||
otherwise go on to next menu without autoselect */
|
||||
|
||||
Reference in New Issue
Block a user