From f864c001ebf17d5cdc27e14e036aa6a22ca32534 Mon Sep 17 00:00:00 2001 From: lm Date: Mon, 6 Dec 2010 12:05:18 +0100 Subject: [PATCH] Fixed Linux compile error --- src/ui/map3D/QGCGoogleEarthView.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/map3D/QGCGoogleEarthView.cc b/src/ui/map3D/QGCGoogleEarthView.cc index 7bc7c26..be3154c 100644 --- a/src/ui/map3D/QGCGoogleEarthView.cc +++ b/src/ui/map3D/QGCGoogleEarthView.cc @@ -87,6 +87,7 @@ void QGCGoogleEarthView::follow(bool follow) void QGCGoogleEarthView::updateState() { +#ifdef Q_OS_MAC if (webViewMac->page()->currentFrame()->evaluateJavaScript("isInitialized();").toBool()) { static bool initialized = false; @@ -128,6 +129,7 @@ void QGCGoogleEarthView::updateState() webViewMac->page()->currentFrame()->evaluateJavaScript(QString("updateFollowAircraft()")); } } +#endif } void QGCGoogleEarthView::changeEvent(QEvent *e)