diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-07 14:52:01 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-11 00:00:53 -0800 |
commit | 13db36c12387d7236a47fdd7da2693635fc3beca (patch) | |
tree | 4611c19277911d50562af415e0948d4d2b0ad1fe | |
parent | dea1a3033256b9932fe4b0314f0e5533857b8b53 (diff) | |
download | qtlocation-mapboxgl-13db36c12387d7236a47fdd7da2693635fc3beca.tar.gz |
[macos] Fixed exception on certain keyboard shortcuts
An implementation of -validateMenuItem: should rarely call the superclass implementation.
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index bf31daffad..5c555925c4 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -2486,7 +2486,7 @@ public: if (menuItem.action == @selector(giveFeedback:)) { return YES; } - return [super validateMenuItem:menuItem]; + return NO; } #pragma mark Interface Builder methods |