From 395da337e9c663d4e8779cd72ad661385fd027cb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Sep 2010 11:44:35 +0000 Subject: [PATCH] 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 --- include/wx/accel.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.49.0