From 3bff16d9ad1df91edb7650766d69fb42fe6e6ed9 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Wed, 29 Dec 2010 19:01:13 +0100 Subject: [PATCH] Fixed mac compile error --- src/ui/map3D/QGCGoogleEarthView.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/map3D/QGCGoogleEarthView.cc b/src/ui/map3D/QGCGoogleEarthView.cc index 64c2d3d99..01f2dd0f4 100644 --- a/src/ui/map3D/QGCGoogleEarthView.cc +++ b/src/ui/map3D/QGCGoogleEarthView.cc @@ -228,18 +228,17 @@ void QGCGoogleEarthView::initializeGoogleEarth() { #ifdef Q_OS_MAC if (!webViewMac->page()->currentFrame()->evaluateJavaScript("isInitialized();").toBool()) + { #endif #ifdef _MSC_VER static bool first = true; if (first) -#endif { QTimer::singleShot(500, this, SLOT(initializeGoogleEarth())); first = false; } else { -#ifdef _MSC_VER QAxObject* doc = webViewWin->querySubObject("Document()"); IDispatch* Disp; IDispatch* winDoc = NULL; -- 2.22.0