From: Vadim Zeitlin Date: Fri, 10 Sep 2010 11:44:35 +0000 (+0000) Subject: Don't return false from IsOk() for accelerators without flags. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/395da337e9c663d4e8779cd72ad661385fd027cb Don't return false from IsOk() for accelerators without flags. wxAcceleratorEntry::IsOk() checked for m_flags != 0 for some reason. Simply remove this test. See #12444. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/accel.h b/include/wx/accel.h index 0d3593cc28..65b9a182f6 100644 --- a/include/wx/accel.h +++ b/include/wx/accel.h @@ -107,8 +107,7 @@ public: bool IsOk() const { - return m_flags != 0 && - m_keyCode != 0; + return m_keyCode != 0; }