Commit f864c001 authored by lm's avatar lm

Fixed Linux compile error

parent a7e4f7d0
...@@ -87,6 +87,7 @@ void QGCGoogleEarthView::follow(bool follow) ...@@ -87,6 +87,7 @@ void QGCGoogleEarthView::follow(bool follow)
void QGCGoogleEarthView::updateState() void QGCGoogleEarthView::updateState()
{ {
#ifdef Q_OS_MAC
if (webViewMac->page()->currentFrame()->evaluateJavaScript("isInitialized();").toBool()) if (webViewMac->page()->currentFrame()->evaluateJavaScript("isInitialized();").toBool())
{ {
static bool initialized = false; static bool initialized = false;
...@@ -128,6 +129,7 @@ void QGCGoogleEarthView::updateState() ...@@ -128,6 +129,7 @@ void QGCGoogleEarthView::updateState()
webViewMac->page()->currentFrame()->evaluateJavaScript(QString("updateFollowAircraft()")); webViewMac->page()->currentFrame()->evaluateJavaScript(QString("updateFollowAircraft()"));
} }
} }
#endif
} }
void QGCGoogleEarthView::changeEvent(QEvent *e) void QGCGoogleEarthView::changeEvent(QEvent *e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment