mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix Map redisplay QT4.8 and Windows
.. webbridge gets stuck and we delete and recreate it to reset for a new map display. Seems to be a bug in webkit ...
This commit is contained in:
@@ -96,6 +96,11 @@ void BingMap::loadRide()
|
||||
|
||||
void BingMap::updateFrame()
|
||||
{
|
||||
// deleting the web bridge seems to be the only way to
|
||||
// reset state between it and the webpage.
|
||||
delete webBridge;
|
||||
webBridge = new BWebBridge(context, this);
|
||||
|
||||
view->page()->mainFrame()->addToJavaScriptWindowObject("webBridge", webBridge);
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +109,11 @@ void GoogleMapControl::loadRide()
|
||||
|
||||
void GoogleMapControl::updateFrame()
|
||||
{
|
||||
// deleting the web bridge seems to be the only way to
|
||||
// reset state between it and the webpage.
|
||||
delete webBridge;
|
||||
webBridge = new WebBridge(context, this);
|
||||
|
||||
view->page()->mainFrame()->addToJavaScriptWindowObject("webBridge", webBridge);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user