summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.cpp
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@theqtcompany.com>2015-03-22 19:23:42 +0100
committerPierre Rossi <pierre.rossi@theqtcompany.com>2015-03-22 19:26:27 +0100
commitdac590ce0d0b40af8332209c402639a5e14e4b6b (patch)
tree48d49e6693d35e3a801f381b451620645ebb5f6c /src/core/web_contents_delegate_qt.cpp
parentd51d9b81da1c6c0989b2d5d68d09ede70144abd5 (diff)
parent6e8fdb129b7ffa19eacb3ef5d03989e52a6a0169 (diff)
Merge remote-tracking branch 'origin/5.5' into dev
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r--src/core/web_contents_delegate_qt.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp
index 5890a4c36..4050dc789 100644
--- a/src/core/web_contents_delegate_qt.cpp
+++ b/src/core/web_contents_delegate_qt.cpp
@@ -357,9 +357,10 @@ void WebContentsDelegateQt::cancelGeolocationPermissionRequest(const GURL &reque
void WebContentsDelegateQt::geolocationPermissionReply(const QUrl &origin, bool permission)
{
- if (m_geolocationPermissionRequests.contains(origin)) {
- m_geolocationPermissionRequests[origin].Run(permission);
- m_geolocationPermissionRequests.remove(origin);
+ auto it = m_geolocationPermissionRequests.find(origin);
+ if (it != m_geolocationPermissionRequests.end()) {
+ (*it).Run(permission);
+ m_geolocationPermissionRequests.erase(it);
}
}