Commit 3bff16d9 authored by pixhawk's avatar pixhawk

Fixed mac compile error

parent f182d292
......@@ -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;
......
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