]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't return false from IsOk() for accelerators without flags.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Sep 2010 11:44:35 +0000 (11:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Sep 2010 11:44:35 +0000 (11:44 +0000)
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

index 0d3593cc282a2463db621a254970849a4359cad5..65b9a182f6f96f16f46e7ccd22693a007747fe0f 100644 (file)
@@ -107,8 +107,7 @@ public:
 
     bool IsOk() const
     {
-        return m_flags != 0 &&
-               m_keyCode != 0;
+        return  m_keyCode != 0;
     }