diff --git a/src/GoogleMapControl.cpp b/src/GoogleMapControl.cpp index 54a92e212..c5c0891c7 100644 --- a/src/GoogleMapControl.cpp +++ b/src/GoogleMapControl.cpp @@ -257,19 +257,7 @@ void GoogleMapControl::loadRide() createHtml(); newRideToLoad = false; loadingPage = true; - - QString htmlFile(QDir::tempPath()); - htmlFile.append("/maps.html"); - QFile file(htmlFile); - file.remove(); - file.open(QIODevice::ReadWrite); - file.write(currentPage.str().c_str(),currentPage.str().length()); - file.flush(); - file.close(); - QString filename("file:///"); - filename.append(htmlFile); - QUrl url(filename); - view->load(url); + view->setHtml(currentPage.str().c_str()); } }