summaryrefslogtreecommitdiff
path: root/platform/macos/app/Base.lproj/MapDocument.xib
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-11-23 12:03:34 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-11-28 15:45:43 -0800
commit03a2dbe3615cd525d091e49f640f960fa2b28a81 (patch)
treed155ba67d9af65371897c62cab0170352bc45c1f /platform/macos/app/Base.lproj/MapDocument.xib
parent9fac640bf35db408f56103b45f8ef7982204bfa9 (diff)
downloadqtlocation-mapboxgl-03a2dbe3615cd525d091e49f640f960fa2b28a81.tar.gz
[macos] Avoid first responder action name conflict
Fixed a crash that often occurred when switching styles. MGLMapView was ahead of MapDocument in the responder chain, so calls to -setStyle: were going to MGLMapView’s private -setStyle: method. The sender was being passed in the first parameter instead of an MGLStyle method.
Diffstat (limited to 'platform/macos/app/Base.lproj/MapDocument.xib')
-rw-r--r--platform/macos/app/Base.lproj/MapDocument.xib2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/app/Base.lproj/MapDocument.xib b/platform/macos/app/Base.lproj/MapDocument.xib
index 2fb02f9c47..4e58490e68 100644
--- a/platform/macos/app/Base.lproj/MapDocument.xib
+++ b/platform/macos/app/Base.lproj/MapDocument.xib
@@ -86,7 +86,7 @@
</popUpButtonCell>
</popUpButton>
<connections>
- <action selector="setStyle:" target="-1" id="2Kw-9i-a3G"/>
+ <action selector="showStyle:" target="-1" id="pBn-SO-HIX"/>
</connections>
</toolbarItem>
</allowedToolbarItems>