Replace wxValidator::SetBellOnError() with SuppressBellOnError().
SetBellOnError() erroneously inversed the value of its parameter. Fixing it to behave correctly could silently break the existing code which might work around this bug already because it always behaved like this (ever since it was added 10.5 years ago). So instead simply deprecate this function and add a new SuppressBellOnError() one which behaves as expected. Closes #11318. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,8 +74,14 @@ public:
|
||||
/**
|
||||
This functions switches on or turns off the error sound produced by the
|
||||
validators if an invalid key is pressed.
|
||||
|
||||
@since 2.9.1
|
||||
|
||||
@param suppress
|
||||
If @true, error sound is not played when a validator detects an
|
||||
error. If @false, error sound is enabled.
|
||||
*/
|
||||
static void SetBellOnError(bool doIt = true);
|
||||
static void SuppressBellOnError(bool suppress = true);
|
||||
|
||||
/**
|
||||
Associates a window with the validator.
|
||||
|
Reference in New Issue
Block a user